Mercurial > vim
comparison src/popupwin.c @ 23857:16a19892e22e v8.2.2470
patch 8.2.2470: popup_getoptions() does not get textprop from other tab
Commit: https://github.com/vim/vim/commit/650264367725af6740b94cfd24d9f5caf0e91356
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 6 14:22:32 2021 +0100
patch 8.2.2470: popup_getoptions() does not get textprop from other tab
Problem: Popup_getoptions() does not get textprop from other tab.
Solution: use win_valid_any_tab(). (closes https://github.com/vim/vim/issues/7786)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Feb 2021 14:30:04 +0100 |
parents | 88a7e3bbb594 |
children | 12b446696927 |
comparison
equal
deleted
inserted
replaced
23856:6f1eb8fe8b9b | 23857:16a19892e22e |
---|---|
2981 dict_add_number(dict, "maxwidth", wp->w_maxwidth); | 2981 dict_add_number(dict, "maxwidth", wp->w_maxwidth); |
2982 dict_add_number(dict, "firstline", wp->w_firstline); | 2982 dict_add_number(dict, "firstline", wp->w_firstline); |
2983 dict_add_number(dict, "scrollbar", wp->w_want_scrollbar); | 2983 dict_add_number(dict, "scrollbar", wp->w_want_scrollbar); |
2984 dict_add_number(dict, "zindex", wp->w_zindex); | 2984 dict_add_number(dict, "zindex", wp->w_zindex); |
2985 dict_add_number(dict, "fixed", wp->w_popup_fixed); | 2985 dict_add_number(dict, "fixed", wp->w_popup_fixed); |
2986 if (wp->w_popup_prop_type && win_valid(wp->w_popup_prop_win)) | 2986 if (wp->w_popup_prop_type && win_valid_any_tab(wp->w_popup_prop_win)) |
2987 { | 2987 { |
2988 proptype_T *pt = text_prop_type_by_id( | 2988 proptype_T *pt = text_prop_type_by_id( |
2989 wp->w_popup_prop_win->w_buffer, | 2989 wp->w_popup_prop_win->w_buffer, |
2990 wp->w_popup_prop_type); | 2990 wp->w_popup_prop_type); |
2991 | 2991 |