comparison src/popupwin.c @ 16874:da5f5836e90c v8.1.1438

patch 8.1.1438: some commands cause trouble in a popup window commit https://github.com/vim/vim/commit/815b76bff618c07226653e11f29c4d3c5640b63a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 1 14:15:52 2019 +0200 patch 8.1.1438: some commands cause trouble in a popup window Problem: Some commands cause trouble in a popup window. Solution: Add NOT_IN_POPUP_WINDOW.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jun 2019 14:30:06 +0200
parents a836d122231a
children 998603a243d7
comparison
equal deleted inserted replaced
16873:1958b437e892 16874:da5f5836e90c
745 dict_add_number(dict, "time", wp->w_popup_timer != NULL 745 dict_add_number(dict, "time", wp->w_popup_timer != NULL
746 ? (long)wp->w_popup_timer->tr_interval : 0L); 746 ? (long)wp->w_popup_timer->tr_interval : 0L);
747 # endif 747 # endif
748 } 748 }
749 } 749 }
750
751 int
752 not_in_popup_window()
753 {
754 if (bt_popup(curwin->w_buffer))
755 {
756 emsg(_("E994: Not allowed in a popup window"));
757 return TRUE;
758 }
759 return FALSE;
760 }
761
750 #endif // FEAT_TEXT_PROP 762 #endif // FEAT_TEXT_PROP