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