diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-12 14:36:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 14:36:05 +0800 |
commit | 8b75ca734541a42bf0d3f3fd8e39e94662084895 (patch) | |
tree | 688fb3b654823d7579964495fb4c5af58f7e7bd8 /src/nvim/ex_cmds.c | |
parent | 540d1af90e2276a8bd3b5edb1a63c8225a1aa423 (diff) | |
parent | 1abdb3224b177078b046873dadb81381960ad52b (diff) | |
download | rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.gz rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.bz2 rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.zip |
Merge pull request #19332 from zeertzjq/vim-8.2.0270
vim-patch:8.2.{0270,2732}
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index afded97a01..4c711d3ebc 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3874,6 +3874,7 @@ static int do_sub(exarg_T *eap, proftime_T timeout, long cmdpreview_ns, handle_T curwin->w_cursor.col = 0; } getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec); + curwin->w_cursor.col = regmatch.startpos[0].col; if (subflags.do_number || curwin->w_p_nu) { int numw = number_width(curwin) + 1; sc += numw; |