File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -276,17 +276,15 @@ function! vira#_menu(type) abort " {{{2
276
276
silent ! let winnr = bufwinnr (s: vira_root_dir . ' /vira_' . type . ' $' )
277
277
if type == ' report'
278
278
if (winnr <= 0 )
279
- if g: vira_report_width == ' T' || g: vira_report_width == ' 0'
279
+ if g: vira_report_width == ' l' || g: vira_report_width == ' L' || g: vira_report_width > 0
280
+ autocmd BufEnter vira_report wincmd L
281
+ elseif g: vira_report_width == ' h' || g: vira_report_width == ' H' || g: vira_report_width < 0
282
+ autocmd BufEnter vira_report wincmd H
283
+ elseif g: vira_report_width == ' t' || g: vira_report_width == ' T' || g: vira_report_width == ' 0'
280
284
autocmd BufEnter vira_report silent ! wincmd T
281
- else
282
- if g: vira_report_width == ' h' || g: vira_report_width == ' H' || g: vira_report_width < 0
283
- autocmd BufEnter vira_report wincmd H
284
- elseif g: vira_report_width == ' l' || g: vira_report_width == ' L' || g: vira_report_width > 0
285
- autocmd BufEnter vira_report wincmd L
286
- endif
287
- autocmd BufEnter vira_report setlocal winfixwidth
288
- silent ! execute ' vertical resize ' . g: vira_report_width
289
285
endif
286
+ autocmd BufEnter vira_report setlocal winfixwidth
287
+ silent ! execute ' vertical resize ' . g: vira_report_width
290
288
silent ! execute ' botright vnew ' . fnameescape (s: vira_root_dir . ' /vira_' . type )
291
289
else | call execute (winnr . ' windo e' ) | endif
292
290
else " Menus
You can’t perform that action at this time.
0 commit comments