Mercurial > vim
comparison src/popupmenu.c @ 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 | a9c47c623f4a |
children | e7b4fff348dd |
comparison
equal
deleted
inserted
replaced
19101:7c682fab000b | 19102:ba9f50bfda83 |
---|---|
1074 dict_add_number(dict, "height", pum_height); | 1074 dict_add_number(dict, "height", pum_height); |
1075 dict_add_number(dict, "width", pum_width); | 1075 dict_add_number(dict, "width", pum_width); |
1076 dict_add_number(dict, "row", pum_row); | 1076 dict_add_number(dict, "row", pum_row); |
1077 dict_add_number(dict, "col", pum_col); | 1077 dict_add_number(dict, "col", pum_col); |
1078 dict_add_number(dict, "size", pum_size); | 1078 dict_add_number(dict, "size", pum_size); |
1079 dict_add_special(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE); | 1079 dict_add_bool(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE); |
1080 } | 1080 } |
1081 #endif | 1081 #endif |
1082 | 1082 |
1083 #if defined(FEAT_BEVAL_TERM) || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO) | 1083 #if defined(FEAT_BEVAL_TERM) || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO) |
1084 static void | 1084 static void |