Skip to content

Commit ca49b43

Browse files
committed
fix: avoid using autocmd that may trigger in picker
1 parent 99037db commit ca49b43

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

autoload/fall/command/Fall.vim

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@ function! fall#command#Fall#call(args) abort
33
return
44
endif
55
let l:laststatus_saved = &laststatus
6-
augroup fall_command_Fall
7-
autocmd!
8-
autocmd CmdlineEnter * call s:hide()
9-
autocmd CmdlineLeave * call timer_start(0, { -> s:show() })
10-
augroup END
116
try
127
set laststatus=0
8+
call s:hide()
139
call fall#internal#mapping#store()
1410
call denops#request('fall', 'picker:command', [a:args])
1511
finally
16-
augroup fall_command_Fall
17-
autocmd!
18-
augroup END
12+
call s:show()
1913
call fall#internal#tolerant#call({ -> fall#internal#mapping#restore() })
2014
call fall#internal#tolerant#call({ -> fall#internal#popup#closeall() })
2115
let &laststatus = l:laststatus_saved

0 commit comments

Comments
 (0)