diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-03 22:52:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-03 22:52:39 +0200 |
commit | 2bb2658bef9fb25b320f87147261b7154494a86f (patch) | |
tree | d191313ffa993e6b2bb20092b37b3c30bbd7b923 /src/structs.h | |
parent | 92f26c256e06277ff2ec4ce7adea1eb58c85abe0 (diff) | |
download | vim-git-2bb2658bef9fb25b320f87147261b7154494a86f.tar.gz |
patch 8.2.1795: Vim9: operators && and || have a confusing resultv8.2.1795
Problem: Vim9: operators && and || have a confusing result.
Solution: Make the result a boolean.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/structs.h b/src/structs.h index 85607fcec..86c6ef899 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1382,7 +1382,7 @@ struct type_S { typedef struct { vartype_T v_type; - char v_lock; // see below: VAR_LOCKED, VAR_FIXED, VAR_BOOL_OK + char v_lock; // see below: VAR_LOCKED, VAR_FIXED union { varnumber_T v_number; // number value @@ -1409,7 +1409,6 @@ typedef struct // Values for "v_lock". #define VAR_LOCKED 1 // locked with lock(), can use unlock() #define VAR_FIXED 2 // locked forever -#define VAR_BOOL_OK 4 // can be convered to bool /* * Structure to hold an item of a list: an internal variable without a name. |