From 3b1a850b85a1b160817c35872bf1978f112958bf Mon Sep 17 00:00:00 2001 From: Phil Runninger Date: Sun, 7 Jul 2019 03:19:17 -0400 Subject: [PATCH] Use :mode instead of :redraw! when updating menu. (#1016) * Use :mode instead of :redraw! when updating screen. In neovim, it will actually clear the whole screen, whereas, redraw! does not. * Update version number in change log. --- CHANGELOG.md | 1 + lib/nerdtree/menu_controller.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2273aa4..ad030a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Change Log #### 5.2... +- **.5**: Use `:mode` instead of `:redraw!` when updating menu. (PhilRunninger) #1016 - **.4**: When searching for root line num, stop at end of file. (PhilRunninger) #1015 - **.3**: Fix `` key map on the bookmark (lkebin) #1014 - **.2**: Make Enter work on the `.. ( up a dir )` line (PhilRunninger) #1013 diff --git a/lib/nerdtree/menu_controller.vim b/lib/nerdtree/menu_controller.vim index 26dbd29..1182c53 100644 --- a/lib/nerdtree/menu_controller.vim +++ b/lib/nerdtree/menu_controller.vim @@ -31,7 +31,7 @@ function! s:MenuController.showMenu() let l:done = 0 while !l:done - redraw! + mode call self._echoPrompt() let l:key = nr2char(getchar())