diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-18 13:08:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 13:08:07 +0200 |
commit | d7dd6007167eac919205404bc4e556237118a7a7 (patch) | |
tree | d8b12409da742da89a2b7bf4847e5084956b0618 /src/nvim/normal.c | |
parent | 2d277320295d1380ac093d547206b295bbdcf414 (diff) | |
parent | e1bdb2a258cbe6c5cb981acc6bac82cd9e7706fb (diff) | |
download | rneovim-d7dd6007167eac919205404bc4e556237118a7a7.tar.gz rneovim-d7dd6007167eac919205404bc4e556237118a7a7.tar.bz2 rneovim-d7dd6007167eac919205404bc4e556237118a7a7.zip |
Merge pull request #18562 from famiu/feat/ui/winbar
feat(ui): add `'winbar'`
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 2826b7dad1..1692970a97 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1280,7 +1280,8 @@ static void normal_redraw(NormalState *s) validate_cursor(); if (VIsual_active) { - update_curbuf(INVERTED); // update inverted part + redraw_curbuf_later(INVERTED); // update inverted part + update_screen(INVERTED); } else if (must_redraw) { update_screen(0); } else if (redraw_cmdline || clear_cmdline) { @@ -1850,6 +1851,11 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent) oap == NULL ? NULL : &(oap->inclusive), which_button); + // A click in the window bar has no side effects. + if (jump_flags & MOUSE_WINBAR) { + return false; + } + moved = (jump_flags & CURSOR_MOVED); in_status_line = (jump_flags & IN_STATUS_LINE); in_sep_line = (jump_flags & IN_SEP_LINE); |