aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-03-05 18:07:15 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-03-25 18:57:35 -0300
commitb16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b (patch)
tree1320080d0b40e1a360fba45f63d8f2a23ee16ced /src/nvim/ex_cmds.c
parent8b6b06c2e08ae3bfd5aaa5b920a521a03b42a2b3 (diff)
downloadrneovim-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.c2
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;