aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.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/ops.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/ops.c')
-rw-r--r--src/nvim/ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 7f2df8199c..50710cd78a 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -583,7 +583,7 @@ void op_reindent(oparg_T *oap, Indenter how)
linenr_T start_lnum = curwin->w_cursor.lnum;
/* Don't even try when 'modifiable' is off. */
- if (!curbuf->b_p_ma) {
+ if (!MODIFIABLE(curbuf)) {
EMSG(_(e_modifiable));
return;
}
@@ -1329,7 +1329,7 @@ int op_delete(oparg_T *oap)
if (oap->empty)
return u_save_cursor();
- if (!curbuf->b_p_ma) {
+ if (!MODIFIABLE(curbuf)) {
EMSG(_(e_modifiable));
return FAIL;
}