Mercurial > vim
diff src/popupwin.c @ 22429:909ce065e99a v8.2.1763
patch 8.2.1763: Vim9: cannot use "true" for popup window scrollbar option
Commit: https://github.com/vim/vim/commit/6c542f77eba73a95447f285149b3fcb011aa9675
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 27 21:16:45 2020 +0200
patch 8.2.1763: Vim9: cannot use "true" for popup window scrollbar option
Problem: Vim9: cannot use "true" for popup window scrollbar option.
Solution: use dict_get_bool(). (closes https://github.com/vim/vim/issues/7029)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Sep 2020 21:30:07 +0200 |
parents | 3351d2cd3f1f |
children | d5ce7dd60dc1 |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -665,9 +665,9 @@ apply_general_options(win_T *wp, dict_T wp->w_firstline = -1; } - di = dict_find(dict, (char_u *)"scrollbar", -1); - if (di != NULL) - wp->w_want_scrollbar = dict_get_number(dict, (char_u *)"scrollbar"); + nr = dict_get_bool(dict, (char_u *)"scrollbar", -1); + if (nr != -1) + wp->w_want_scrollbar = nr; str = dict_get_string(dict, (char_u *)"title", FALSE); if (str != NULL)