diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-05 15:34:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 15:34:17 +0800 |
commit | d184933cdc70edf298eb0a84fdfbc78bb717746b (patch) | |
tree | 0ca8226992019df65e661d9d0eca4f8f218a8d0f /src/nvim/optionstr.c | |
parent | 35ffe58ea4a32719e6776f7b6ef710299f78342a (diff) | |
download | rneovim-d184933cdc70edf298eb0a84fdfbc78bb717746b.tar.gz rneovim-d184933cdc70edf298eb0a84fdfbc78bb717746b.tar.bz2 rneovim-d184933cdc70edf298eb0a84fdfbc78bb717746b.zip |
fix(redraw): update Visual selection properly with splits (#27343)
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 00e024e735..518208a037 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -1967,8 +1967,8 @@ const char *did_set_selection(optset_T *args FUNC_ATTR_UNUSED) return e_invarg; } if (VIsual_active) { - // In Visual mode cursor may be drawn differently. - redrawWinline(curwin, curwin->w_cursor.lnum); + // Visual selection may be drawn differently. + redraw_curbuf_later(UPD_INVERTED); } return NULL; } |