Skip to content

Commit

Permalink
Use :mode instead of :redraw! when updating menu. (#1016)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
PhilRunninger authored Jul 7, 2019
1 parent 89a1a43 commit 3b1a850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/nerdtree/menu_controller.vim
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function! s:MenuController.showMenu()
let l:done = 0

while !l:done
redraw!
mode

This comment has been minimized.

Copy link
@xusiyuan841028

xusiyuan841028 Jul 10, 2019

mode has same issue in MacVim as redraw! in neovim!!!

image

call self._echoPrompt()

let l:key = nr2char(getchar())
Expand Down

0 comments on commit 3b1a850

Please sign in to comment.