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/ops.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/ops.c')
-rw-r--r-- | src/nvim/ops.c | 4 |
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; } |