Mercurial > vim
diff src/globals.h @ 29014:45c182c4f7e9 v8.2.5029
patch 8.2.5029: "textlock" is always zero
Commit: https://github.com/vim/vim/commit/cfe456543e840d133399551f8626d985e1fb1958
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri May 27 17:26:55 2022 +0100
patch 8.2.5029: "textlock" is always zero
Problem: "textlock" is always zero.
Solution: Remove "textlock" and rename "textwinlock" to "textlock".
(closes #10489)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 May 2022 18:30:04 +0200 |
parents | 6cdf55afaae9 |
children | a2710736125a |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -846,16 +846,11 @@ EXTERN int secure INIT(= FALSE); // allowed, e.g. when sourcing .exrc or .vimrc // in current directory -EXTERN int textwinlock INIT(= 0); +EXTERN int textlock INIT(= 0); // non-zero when changing text and jumping to // another window or editing another buffer is // not allowed -EXTERN int textlock INIT(= 0); - // non-zero when changing text is not allowed, - // jumping to another window is allowed, - // editing another buffer is not allowed. - EXTERN int curbuf_lock INIT(= 0); // non-zero when the current buffer can't be // changed. Used for FileChangedRO.