commit | 61660eadced09491ef8ee0a7d4af73cc75fdc349 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Apr 07 21:40:07 2006 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Apr 07 21:40:07 2006 +0000 |
tree | be677bd7256c7501f70062c7d3306a975badd408 | |
parent | 5555acc08e6f49afe00cbb8fefd687cb526a7cf2 [diff] [blame] |
updated for version 7.0c12
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index bf03721..790b30e 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -4287,6 +4287,13 @@ 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, ®match) == FAIL) { if (do_error)