aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-17 16:45:35 +0200
committerGitHub <noreply@github.com>2022-08-17 16:45:35 +0200
commit35653e6bcda6923b5213fb9356c35067d6d0288f (patch)
tree05188f0b72e9aa7432f2f08516a6f239e491419f /src/nvim/normal.c
parentf7cfca49d6f1380b2ec0b0f7723ea308d0810857 (diff)
parentd879331b0dee66cb106b5bea9efc2f920caf9abd (diff)
downloadrneovim-35653e6bcda6923b5213fb9356c35067d6d0288f.tar.gz
rneovim-35653e6bcda6923b5213fb9356c35067d6d0288f.tar.bz2
rneovim-35653e6bcda6923b5213fb9356c35067d6d0288f.zip
Merge pull request #13457 from bfredl/fÃĪrgtema
feat(highlight): support highlight namespaces per window
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 38baa77eec..4e608ca25b 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -1282,7 +1282,7 @@ static void normal_redraw(NormalState *s)
if (VIsual_active) {
redraw_curbuf_later(INVERTED); // update inverted part
- update_screen(INVERTED);
+ update_screen(0);
} else if (must_redraw) {
update_screen(0);
} else if (redraw_cmdline || clear_cmdline || redraw_mode) {
@@ -1838,7 +1838,8 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent)
}
if (jump_flags) {
jump_flags = jump_to_mouse(jump_flags, NULL, which_button);
- update_curbuf(VIsual_active ? INVERTED : VALID);
+ redraw_curbuf_later(VIsual_active ? INVERTED : VALID);
+ update_screen(0);
setcursor();
ui_flush(); // Update before showing popup menu
}