mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
buffer: Move b_p_ma(modifiable) checks into the MODIFIABLE macro
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user