summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-12-21 20:27:47 +0100
committerBram Moolenaar <Bram@vim.org>2017-12-21 20:27:47 +0100
commitb73fa629d6d3d705c1f8e8d5f8109fc9abd7bb6f (patch)
tree9969ba546d128ada78ef1cb7603caa135b4df255 /src/normal.c
parentae6f8651251013bafef9de1aed09069deaae8122 (diff)
downloadvim-git-b73fa629d6d3d705c1f8e8d5f8109fc9abd7bb6f.tar.gz
patch 8.0.1419: cursor column is not updated after ]sv8.0.1419
Problem: Cursor column is not updated after ]s. (Gary Johnson) Solution: Set the curswant flag.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index a8e65ffd6..745a2f68c 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -6814,6 +6814,8 @@ nv_brackets(cmdarg_T *cap)
clearopbeep(cap->oap);
break;
}
+ else
+ curwin->w_set_curswant = TRUE;
# ifdef FEAT_FOLDING
if (cap->oap->op_type == OP_NOP && (fdo_flags & FDO_SEARCH) && KeyTyped)
foldOpenCursor();