diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-27 13:27:13 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-27 18:40:31 -0400 |
commit | 243d16688a9275b3117abc746764f85df287aba9 (patch) | |
tree | 6c2c4e4521c8a05f1f3e83cfd554914405514949 | |
parent | 9abe0bdb54a05932727665f68044ad23ed34fc30 (diff) | |
download | rneovim-243d16688a9275b3117abc746764f85df287aba9.tar.gz rneovim-243d16688a9275b3117abc746764f85df287aba9.tar.bz2 rneovim-243d16688a9275b3117abc746764f85df287aba9.zip |
vim-patch:8.0.0837: signs can be drawn on top of console messages
Problem: Signs can be drawn on top of console messages.
Solution: don't redraw at a prompt or when scrolled up. (Christian Brabandt,
closes vim/vim#1907)
https://github.com/vim/vim/commit/0792048842493f224bbd7a5dfb348d834f61b205
-rw-r--r-- | src/nvim/screen.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 4774075086..8bed083c7b 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -569,9 +569,13 @@ void update_debug_sign(buf_T *buf, linenr_T lnum) } } - /* Return when there is nothing to do, screen updating is already - * happening (recursive call) or still starting up. */ - if (!doit || updating_screen || starting) { + // Return when there is nothing to do, screen updating is already + // happening (recursive call), messages on the screen or still starting up. + if (!doit + || updating_screen + || State == ASKMORE || State == HITRETURN + || msg_scrolled + || starting) { return; } |