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:
@@ -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, ®match) == FAIL)
|
||||
{
|
||||
if (do_error)
|
||||
|
Reference in New Issue
Block a user