Skip to content

Commit 9bd0726

Browse files
author
skywind3000
committed
fixed: menu may crash in some corner cases
1 parent 874665d commit 9bd0726

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/quickui/menu.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ endfunc
453453
function! s:movement(key)
454454
if a:key == 'ESC'
455455
if g:quickui#core#has_nvim == 0
456-
call popup_close(a:winid, -1)
456+
call popup_close(s:cmenu.winid, -1)
457457
endif
458458
return 1
459459
elseif a:key == 'LEFT' || a:key == 'RIGHT'
@@ -481,6 +481,7 @@ function! s:movement(key)
481481
return s:neovim_dropdown()
482482
endif
483483
endif
484+
return 0
484485
endfunc
485486

486487

0 commit comments

Comments
 (0)