diff options
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index efec431c82..e775398d02 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2407,12 +2407,7 @@ buflist_getfile( if (buf == curbuf) return OK; - if (text_locked()) - { - text_locked_msg(); - return FAIL; - } - if (curbuf_locked()) + if (text_or_buf_locked()) return FAIL; // altfpos may be changed by getfile(), get it now |