diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-05 18:07:15 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-25 18:57:35 -0300 |
commit | b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b (patch) | |
tree | 1320080d0b40e1a360fba45f63d8f2a23ee16ced /src/nvim/ex_cmds.c | |
parent | 8b6b06c2e08ae3bfd5aaa5b920a521a03b42a2b3 (diff) | |
download | rneovim-b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b.tar.gz rneovim-b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b.tar.bz2 rneovim-b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b.zip |
buffer: Move b_p_ma(modifiable) checks into the MODIFIABLE macro
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 2c674e06e6..d85664d1ba 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3656,7 +3656,7 @@ void do_sub(exarg_T *eap) if (eap->skip) /* not executing commands, only parsing */ return; - if (!do_count && !curbuf->b_p_ma) { + if (!do_count && !MODIFIABLE(curbuf)) { /* Substitution is not allowed in non-'modifiable' buffer */ EMSG(_(e_modifiable)); return; |