Mercurial > vim
comparison src/popupmnu.c @ 17813:8ca20b0a3dc3 v8.1.1903
patch 8.1.1903: cannot build without the +eval feature
Commit: https://github.com/vim/vim/commit/9cb698d5647db9299bb5b4b846c23f2015b7262b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 21 15:30:45 2019 +0200
patch 8.1.1903: cannot build without the +eval feature
Problem: Cannot build without the +eval feature.
Solution: Add missing #ifdefs
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Aug 2019 15:45:04 +0200 |
parents | b5499bf22a97 |
children | 9ec2526c04c5 |
comparison
equal
deleted
inserted
replaced
17812:07615a327790 | 17813:8ca20b0a3dc3 |
---|---|
630 * "repeat" == 2: don't open preview window | 630 * "repeat" == 2: don't open preview window |
631 * Returns TRUE when the window was resized and the location of the popup menu | 631 * Returns TRUE when the window was resized and the location of the popup menu |
632 * must be recomputed. | 632 * must be recomputed. |
633 */ | 633 */ |
634 static int | 634 static int |
635 pum_set_selected(int n, int repeat) | 635 pum_set_selected(int n, int repeat UNUSED) |
636 { | 636 { |
637 int resized = FALSE; | 637 int resized = FALSE; |
638 int context = pum_height / 2; | 638 int context = pum_height / 2; |
639 #ifdef FEAT_QUICKFIX | 639 #ifdef FEAT_QUICKFIX |
640 int prev_selected = pum_selected; | 640 int prev_selected = pum_selected; |
994 pum_get_height(void) | 994 pum_get_height(void) |
995 { | 995 { |
996 return pum_height; | 996 return pum_height; |
997 } | 997 } |
998 | 998 |
999 #if defined(FEAT_EVAL) || defined(PROTO) | |
999 /* | 1000 /* |
1000 * Add size information about the pum to "dict". | 1001 * Add size information about the pum to "dict". |
1001 */ | 1002 */ |
1002 void | 1003 void |
1003 pum_set_event_info(dict_T *dict) | 1004 pum_set_event_info(dict_T *dict) |
1009 dict_add_number(dict, "row", pum_row); | 1010 dict_add_number(dict, "row", pum_row); |
1010 dict_add_number(dict, "col", pum_col); | 1011 dict_add_number(dict, "col", pum_col); |
1011 dict_add_number(dict, "size", pum_size); | 1012 dict_add_number(dict, "size", pum_size); |
1012 dict_add_special(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE); | 1013 dict_add_special(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE); |
1013 } | 1014 } |
1015 #endif | |
1014 | 1016 |
1015 #if defined(FEAT_BEVAL_TERM) || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO) | 1017 #if defined(FEAT_BEVAL_TERM) || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO) |
1016 static void | 1018 static void |
1017 pum_position_at_mouse(int min_width) | 1019 pum_position_at_mouse(int min_width) |
1018 { | 1020 { |