From b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Thu, 5 Mar 2015 18:07:15 -0300 Subject: buffer: Move b_p_ma(modifiable) checks into the MODIFIABLE macro --- src/nvim/ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/ops.c') 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; } -- cgit