diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-03-05 02:15:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-03-05 02:15:53 +0000 |
commit | bf1b7a7efeabc6161ce476ed82340e422c15eb09 (patch) | |
tree | bbb98acb47ac5da46b62063c47dde048ab3d6603 /src/ex_getln.c | |
parent | fab0623bcf60333f047f27b03ca05311eeb4485f (diff) | |
download | vim-git-bf1b7a7efeabc6161ce476ed82340e422c15eb09.tar.gz |
updated for version 7.2-132v7.2.132
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index ecaeb3f52..5cda65a07 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -2000,8 +2000,8 @@ text_locked_msg() #if defined(FEAT_AUTOCMD) || defined(PROTO) /* - * Check if "curbuf_lock" is set and return TRUE when it is and give an error - * message. + * Check if "curbuf_lock" or "allbuf_lock" is set and return TRUE when it is + * and give an error message. */ int curbuf_locked() @@ -2011,6 +2011,21 @@ curbuf_locked() EMSG(_("E788: Not allowed to edit another buffer now")); return TRUE; } + return allbuf_locked(); +} + +/* + * Check if "allbuf_lock" is set and return TRUE when it is and give an error + * message. + */ + int +allbuf_locked() +{ + if (allbuf_lock > 0) + { + EMSG(_("E811: Not allowed to change buffer information now")); + return TRUE; + } return FALSE; } #endif |