diff options
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 0263bd15da..dfa89acb1a 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -4679,6 +4679,8 @@ int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1) theend: if (visual) { curwin->w_cursor = save_cursor; + } else if (did_change) { + curwin->w_set_curswant = true; } return did_change; |