Hi,
Line number display is not taken into account so the pattern match
indicator is misaligned.
Before:
:%s/\cvim/VIM/gc#
1 README.txt for version 7.4 of Vim: Vi IMproved.
^^^
With the patch:
:%s/\cvim/VIM/gc#
1 README.txt for version 7.4 of Vim: Vi IMproved.
^^^
Cheers,
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index b79a259..e9c11df 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -4745,6 +4745,12 @@ do_sub(eap)
getvcol(curwin, &curwin->w_cursor, &sc, NULL, NULL);
curwin->w_cursor.col = regmatch.endpos[0].col - 1;
getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec);
+ if (curwin->w_p_nu)
+ {
+ int numw = number_width(curwin) + 1;
+ sc += numw;
+ ec += numw;
+ }
msg_start();
for (i = 0; i < (long)sc; ++i)
msg_putchar(' ');