forked from aniani/vim
patch 8.2.2732: prompt for s///c in Ex mode can be wrong
Problem: Prompt for s///c in Ex mode can be wrong. Solution: Position the cursor before showing the prompt. (closes #8073)
This commit is contained in:
@@ -4153,6 +4153,7 @@ ex_substitute(exarg_T *eap)
|
||||
if (curwin->w_cursor.col < 0)
|
||||
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;
|
||||
|
Reference in New Issue
Block a user