aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.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/fold.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/fold.c')
-rw-r--r--src/nvim/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index a1fbdf7791..74444d4ab7 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -1563,7 +1563,7 @@ static void setSmallMaybe(garray_T *gap)
*/
static void foldCreateMarkers(linenr_T start, linenr_T end)
{
- if (!curbuf->b_p_ma) {
+ if (!MODIFIABLE(curbuf)) {
EMSG(_(e_modifiable));
return;
}