We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
winfixwidth
1 parent 56f7c0d commit 3006aa5Copy full SHA for 3006aa5
autoload/fern/internal/drawer/auto_winfixwidth.vim
@@ -6,9 +6,14 @@ function! fern#internal#drawer#auto_winfixwidth#init() abort
6
augroup fern_internal_drawer_auto_winfixwidth_init
7
autocmd! * <buffer>
8
autocmd BufEnter <buffer> call s:set_winfixwidth()
9
+ autocmd BufWinLeave <buffer> call s:restore_winfixwidth()
10
augroup END
11
endfunction
12
13
function! s:set_winfixwidth() abort
14
let &l:winfixwidth = winnr('$') isnot# 1
15
16
+
17
+function! s:restore_winfixwidth() abort
18
+ let &l:winfixwidth = 0
19
+endfunction
0 commit comments