aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-26 15:17:10 +0200
committerbfredl <bjorn.linse@gmail.com>2022-10-05 20:11:13 +0200
commit6679687bb3909f853ae97dfa01ae08ea2baf7f97 (patch)
treeeba4f499d8521853bb56cadecf19f0d85cac1d9a /src/nvim/quickfix.c
parent1f2ded459a6f26635bf013da4100b3dedb777f73 (diff)
downloadrneovim-6679687bb3909f853ae97dfa01ae08ea2baf7f97.tar.gz
rneovim-6679687bb3909f853ae97dfa01ae08ea2baf7f97.tar.bz2
rneovim-6679687bb3909f853ae97dfa01ae08ea2baf7f97.zip
refactor(redraw): no type argument in update_screen()
This was used in the past with assumption that curwin/curbuf is "special" but this has not been true since basically forever at this point. Reduce NOT_VALID/CLEAR panic in options.lua . These should not be set if an effect of the option is causing something which by itself invokes redraw_later().
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index eeba7fe3c3..f9d139c466 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -2784,7 +2784,10 @@ static void qf_jump_print_msg(qf_info_T *qi, int qf_index, qfline_T *qf_ptr, buf
// Update the screen before showing the message, unless the screen
// scrolled up.
if (!msg_scrolled) {
- update_topline_redraw();
+ update_topline(curwin);
+ if (must_redraw) {
+ update_screen();
+ }
}
snprintf((char *)IObuff, IOSIZE, _("(%d of %d)%s%s: "), qf_index,
qf_get_curlist(qi)->qf_count,