summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-01-20 13:28:34 +0100
committerBram Moolenaar <Bram@vim.org>2012-01-20 13:28:34 +0100
commit8f55d103dbc38b490705617df4380cdfbd60db50 (patch)
tree38302ff6ffa86360f8699ce23b311eb4009d4307 /src/quickfix.c
parent309cbc3840045f246b0b858e4013b2ed170c1c46 (diff)
downloadvim-git-8f55d103dbc38b490705617df4380cdfbd60db50.tar.gz
updated for version 7.3.402v7.3.402
Problem: When jumping to the first error a line of the buffer is sometimes redrawn on top of the list of errors. Solution: Do not call update_topline_redraw() if the display was scrolled up.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 26eac7be5..fdf245685 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -1842,8 +1842,10 @@ win_found:
#endif
if (print_message)
{
- /* Update the screen before showing the message */
- update_topline_redraw();
+ /* Update the screen before showing the message, unless the screen
+ * scrolled up. */
+ if (!msg_scrolled)
+ update_topline_redraw();
sprintf((char *)IObuff, _("(%d of %d)%s%s: "), qf_index,
qi->qf_lists[qi->qf_curlist].qf_count,
qf_ptr->qf_cleared ? _(" (line deleted)") : "",