diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-05 20:41:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-05 20:41:53 +0000 |
commit | 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 (patch) | |
tree | 152a03d1d7ea3e8d433addba4f463d8a7a68a5fd /src/ex_getln.c | |
parent | e2f98b95c8071f772695602cd4f714dc588eb8e7 (diff) | |
download | vim-git-910f66f90c928da8b607ccfdc12fc33d9cb8d4a9.tar.gz |
updated for version 7.0c10v7.0c10
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index ec6ee567a..e4a1c99b4 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1942,6 +1942,23 @@ text_locked_msg() EMSG(_(e_secure)); } +#if defined(FEAT_AUTOCMD) || defined(PROTO) +/* + * Check if "curbuf_lock" is set and return TRUE when it is and give an error + * message. + */ + int +curbuf_locked() +{ + if (curbuf_lock > 0) + { + EMSG(_("E788: Not allowed to edit another buffer now")); + return TRUE; + } + return FALSE; +} +#endif + static int cmdline_charsize(idx) int idx; |