Skip to content

Commit e9717de

Browse files
committed
Show current width ratio on 'zoom'
1 parent f1f4b88 commit e9717de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/fern/mapping/drawer.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ function! s:map_zoom(helper) abort
2424
endif
2525
let alpha = v:count
2626
if alpha <= 0 || alpha > 10
27-
let alpha = s:input_alpha('Width ratio [1-10]: ')
27+
let current = float2nr(ceil(str2float(winwidth(0)) / &columns * 10))
28+
let alpha = s:input_alpha(printf('Width ratio [%d -> 1-10]: ', current))
2829
endif
2930
let alpha = str2float(alpha)
3031
let width = &columns * (alpha / 10)

0 commit comments

Comments
 (0)