comparison 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
comparison
equal deleted inserted replaced
29013:d114ba9c74c2 29014:45c182c4f7e9
844 EXTERN int secure INIT(= FALSE); 844 EXTERN int secure INIT(= FALSE);
845 // non-zero when only "safe" commands are 845 // non-zero when only "safe" commands are
846 // allowed, e.g. when sourcing .exrc or .vimrc 846 // allowed, e.g. when sourcing .exrc or .vimrc
847 // in current directory 847 // in current directory
848 848
849 EXTERN int textwinlock INIT(= 0); 849 EXTERN int textlock INIT(= 0);
850 // non-zero when changing text and jumping to 850 // non-zero when changing text and jumping to
851 // another window or editing another buffer is 851 // another window or editing another buffer is
852 // not allowed 852 // not allowed
853
854 EXTERN int textlock INIT(= 0);
855 // non-zero when changing text is not allowed,
856 // jumping to another window is allowed,
857 // editing another buffer is not allowed.
858 853
859 EXTERN int curbuf_lock INIT(= 0); 854 EXTERN int curbuf_lock INIT(= 0);
860 // non-zero when the current buffer can't be 855 // non-zero when the current buffer can't be
861 // changed. Used for FileChangedRO. 856 // changed. Used for FileChangedRO.
862 EXTERN int allbuf_lock INIT(= 0); 857 EXTERN int allbuf_lock INIT(= 0);