comparison src/eval.c @ 16778:eda4d65f232c v8.1.1391

patch 8.1.1391: no popup window support commit https://github.com/vim/vim/commit/4d784b21d14fc66e98a2b07f70343cdd4acd62aa Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 25 19:51:39 2019 +0200 patch 8.1.1391: no popup window support Problem: No popup window support. Solution: Add initial code for popup windows. Add the 'wincolor' option.
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 May 2019 20:00:08 +0200
parents 695d9ef00b03
children 5f98d80d116a
comparison
equal deleted inserted replaced
16777:20d51e99dd6a 16778:eda4d65f232c
5583 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID, 5583 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID,
5584 NULL, NULL); 5584 NULL, NULL);
5585 if (aucmd_win != NULL) 5585 if (aucmd_win != NULL)
5586 abort = abort || set_ref_in_item(&aucmd_win->w_winvar.di_tv, copyID, 5586 abort = abort || set_ref_in_item(&aucmd_win->w_winvar.di_tv, copyID,
5587 NULL, NULL); 5587 NULL, NULL);
5588 #ifdef FEAT_TEXT_PROP
5589 for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
5590 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID,
5591 NULL, NULL);
5592 for (wp = first_tab_popupwin; wp != NULL; wp = wp->w_next)
5593 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID,
5594 NULL, NULL);
5595 FOR_ALL_TABPAGES(tp)
5596 if (tp != curtab)
5597 for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
5598 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID,
5599 NULL, NULL);
5600 #endif
5588 5601
5589 /* tabpage-local variables */ 5602 /* tabpage-local variables */
5590 FOR_ALL_TABPAGES(tp) 5603 FOR_ALL_TABPAGES(tp)
5591 abort = abort || set_ref_in_item(&tp->tp_winvar.di_tv, copyID, 5604 abort = abort || set_ref_in_item(&tp->tp_winvar.di_tv, copyID,
5592 NULL, NULL); 5605 NULL, NULL);
8799 } 8812 }
8800 else if (--nr <= 0) 8813 else if (--nr <= 0)
8801 break; 8814 break;
8802 } 8815 }
8803 if (nr >= LOWEST_WIN_ID) 8816 if (nr >= LOWEST_WIN_ID)
8817 {
8818 #ifdef FEAT_TEXT_PROP
8819 // popup windows are in a separate list
8820 for (wp = (tp == NULL || tp == curtab)
8821 ? first_tab_popupwin : tp->tp_first_popupwin;
8822 wp != NULL; wp = wp->w_next)
8823 if (wp->w_id == nr)
8824 return wp;
8825 for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
8826 if (wp->w_id == nr)
8827 return wp;
8828 #endif
8804 return NULL; 8829 return NULL;
8830 }
8805 return wp; 8831 return wp;
8806 } 8832 }
8807 8833
8808 /* 8834 /*
8809 * Find a window: When using a Window ID in any tab page, when using a number 8835 * Find a window: When using a Window ID in any tab page, when using a number