0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0c12

This commit is contained in:
Bram Moolenaar
2006-04-07 21:40:07 +00:00
parent 5555acc08e
commit 61660eadce
12 changed files with 106 additions and 73 deletions

View File

@@ -4287,6 +4287,13 @@ do_sub(eap)
if (eap->skip) /* not executing commands, only parsing */
return;
if (!do_count && !curbuf->b_p_ma)
{
/* Substitusion is not allowed in non-'modifiable' buffer */
EMSG(_(e_modifiable));
return;
}
if (search_regcomp(pat, RE_SUBST, which_pat, SEARCH_HIS, &regmatch) == FAIL)
{
if (do_error)