From 243d16688a9275b3117abc746764f85df287aba9 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 27 Jul 2018 13:27:13 -0400 Subject: 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 --- src/nvim/screen.c | 10 +++++++--- 1 file 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; } -- cgit