mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 19:33:50 -05:00
Clear output when the NERDTree menu is aborted
Previously, exiting the NERDTree menu with "Ctrl-C" or "Esc" would leave the last line of the menu visible. We can avoid this by redrawing the screen when the menu is aborted in this manner.
This commit is contained in:
@@ -33,6 +33,11 @@ function! s:MenuController.showMenu()
|
|||||||
endwhile
|
endwhile
|
||||||
finally
|
finally
|
||||||
call self._restoreOptions()
|
call self._restoreOptions()
|
||||||
|
|
||||||
|
" Redraw when "Ctrl-C" or "Esc" is received.
|
||||||
|
if !l:done || self.selection == -1
|
||||||
|
redraw!
|
||||||
|
endif
|
||||||
endtry
|
endtry
|
||||||
|
|
||||||
if self.selection != -1
|
if self.selection != -1
|
||||||
|
|||||||
Reference in New Issue
Block a user