aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKillTheMule <github@pipsfrank.de>2017-11-05 17:11:44 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-05 17:11:44 +0100
commit04b3c327723587fa63f391884b8dfce44233cc77 (patch)
tree864a3debeb21bad2610972189ed03cffba7ca9a2 /src
parent739bc5124ad2fafdee32d33e1340a73b3778e37e (diff)
downloadrneovim-04b3c327723587fa63f391884b8dfce44233cc77.tar.gz
rneovim-04b3c327723587fa63f391884b8dfce44233cc77.tar.bz2
rneovim-04b3c327723587fa63f391884b8dfce44233cc77.zip
'inccommand': Fix matches for zero-width (#7487)
closes #7485
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 112f53247c..39059a2c80 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3478,6 +3478,10 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout)
else
++matchcol;
}
+ // match will be pushed to preview_lines, bring it into a proper state
+ current_match.start.col = matchcol;
+ current_match.end.lnum = sub_firstlnum;
+ current_match.end.col = matchcol;
goto skip;
}