Closed GoogleCodeExporter closed 9 years ago
Christian Brabandt wrote:
> Here is a patch:
> diff --git a/src/ex_cmds.c b/src/ex_cmds.c
> --- a/src/ex_cmds.c
> +++ b/src/ex_cmds.c
> @@ -5200,6 +5200,7 @@
> EMSG2(_(e_patnotf2), get_search_pat());
> }
>
> + changed_window_setting();
> vim_free(regmatch.regprog);
> }
>
>
> regards,
> Christian
Thanks Christian.
I confirm that your patch works.
To avoid useless redraws in most cases, I suppose that we can
update the window if and only if the substitution confirmation
flag was set (:%s/.../.../c) and there are folds.
So how about this?
diff -r b89e2bdcc6e5 src/ex_cmds.c
--- a/src/ex_cmds.c Sun Dec 16 12:50:40 2012 +0100
+++ b/src/ex_cmds.c Sat Jan 12 10:25:48 2013 +0100
@@ -5200,6 +5200,10 @@
EMSG2(_(e_patnotf2), get_search_pat());
}
+#ifdef FEAT_FOLDING
+ if (do_ask && hasAnyFolding(curwin))
+ changed_window_setting();
+#endif
vim_free(regmatch.regprog);
}
Regards
Dominique
Original comment by dominiqu...@gmail.com
on 12 Jan 2013 at 9:34
Submitted as patch 7.3.772
Original comment by brammool...@gmail.com
on 17 Jan 2013 at 6:59
Original issue reported on code.google.com by
dominiqu...@gmail.com
on 11 Jan 2013 at 9:59