comparison src/popupmnu.c @ 16268:0f65f2808470 v8.1.1138

patch 8.1.1138: plugins don't get notified when the popup menu changes commit https://github.com/vim/vim/commit/d7f246c68cfb97406bcd4b098a2df2d870b3ef92 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 8 18:15:41 2019 +0200 patch 8.1.1138: plugins don't get notified when the popup menu changes Problem: Plugins don't get notified when the popup menu changes. Solution: Add the CompleteChanged event. (Andy Massimino. closes https://github.com/vim/vim/issues/4176)
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Apr 2019 18:30:06 +0200
parents ddd82b1c9e9d
children a1229400434a
comparison
equal deleted inserted replaced
16267:b471858040bc 16268:0f65f2808470
921 pum_get_height(void) 921 pum_get_height(void)
922 { 922 {
923 return pum_height; 923 return pum_height;
924 } 924 }
925 925
926 /*
927 * Add size information about the pum to "dict".
928 */
929 void
930 pum_set_event_info(dict_T *dict)
931 {
932 if (!pum_visible())
933 return;
934 dict_add_number(dict, "height", pum_height);
935 dict_add_number(dict, "width", pum_width);
936 dict_add_number(dict, "row", pum_row);
937 dict_add_number(dict, "col", pum_col);
938 dict_add_number(dict, "size", pum_size);
939 dict_add_special(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE);
940 }
941
926 # if defined(FEAT_BEVAL_TERM) || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO) 942 # if defined(FEAT_BEVAL_TERM) || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO)
927 static void 943 static void
928 pum_position_at_mouse(int min_width) 944 pum_position_at_mouse(int min_width)
929 { 945 {
930 if (Rows - mouse_row > pum_size) 946 if (Rows - mouse_row > pum_size)