aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.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/undo.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/undo.c')
-rw-r--r--src/nvim/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 06dc325fea..e67c5f2aba 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -289,7 +289,7 @@ int u_savedel(linenr_T lnum, long nlines)
int undo_allowed(void)
{
/* Don't allow changes when 'modifiable' is off. */
- if (!curbuf->b_p_ma) {
+ if (!MODIFIABLE(curbuf)) {
EMSG(_(e_modifiable));
return FALSE;
}