nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 3b1a850b85a1b160817c35872bf1978f112958bf
parent 89a1a4355bd9572d0f5b3d23733c243c6e7b05c2
Author: Phil Runninger <PhilRunninger@users.noreply.github.com>
Date:   Sun,  7 Jul 2019 03:19:17 -0400

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.

Diffstat:
MCHANGELOG.md | 1+
Mlib/nerdtree/menu_controller.vim | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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 `<CR>` 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
@@ -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())