Mercurial > vim
diff src/structs.h @ 19102:ba9f50bfda83 v8.2.0111
patch 8.2.0111: VAR_SPECIAL is also used for booleans
Commit: https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 11 16:05:23 2020 +0100
patch 8.2.0111: VAR_SPECIAL is also used for booleans
Problem: VAR_SPECIAL is also used for booleans.
Solution: Add VAR_BOOL for better type checking.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Jan 2020 16:15:04 +0100 |
parents | d9ea4f0bfd34 |
children | 44c6498535c9 |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1313,7 +1313,8 @@ typedef enum VAR_LIST, // "v_list" is used VAR_DICT, // "v_dict" is used VAR_FLOAT, // "v_float" is used - VAR_SPECIAL, // "v_number" is used + VAR_BOOL, // "v_number" is VVAL_FALSE or VVAL_TRUE + VAR_SPECIAL, // "v_number" is VVAL_NONE or VVAL_NULL VAR_JOB, // "v_job" is used VAR_CHANNEL, // "v_channel" is used VAR_BLOB, // "v_blob" is used