Moved resize call to restoreOptions

This commit is contained in:
Santiago Vrancovich 2022-08-27 11:11:50 -03:00 committed by GitHub
parent 74470e93e0
commit 1b8b61c12a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ function! s:MenuController.showMenu()
" Redraw when Ctrl-C or Esc is received.
if !l:done || self.selection ==# -1
redraw! | resize
redraw!
endif
endtry
@ -172,6 +172,7 @@ endfunction
function! s:MenuController._restoreOptions()
let &cmdheight = self._oldCmdheight
let &lazyredraw = self._oldLazyredraw
resize
endfunction
"FUNCTION: MenuController._cursorDown() {{{1