From 2bb2658bef9fb25b320f87147261b7154494a86f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 3 Oct 2020 22:52:39 +0200 Subject: patch 8.2.1795: Vim9: operators && and || have a confusing result Problem: Vim9: operators && and || have a confusing result. Solution: Make the result a boolean. --- src/structs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/structs.h') 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. -- cgit v1.2.1