Mercurial > vim
comparison src/popupmenu.c @ 18767:068337e86133 v8.1.2373
patch 8.1.2373: cannot build with +popupwin but without +quickfix
Commit: https://github.com/vim/vim/commit/5a4c3082d7ab51b3d448a91578479c96c1ab0ad3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 1 15:23:11 2019 +0100
patch 8.1.2373: cannot build with +popupwin but without +quickfix
Problem: Cannot build with +popupwin but without +quickfix. (John Marriott)
Solution: Adjust #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Dec 2019 15:30:04 +0100 |
parents | 49b78d6465e5 |
children | d34ec6fe207d |
comparison
equal
deleted
inserted
replaced
18766:3cc0ddf2abd0 | 18767:068337e86133 |
---|---|
619 #ifdef FEAT_PROP_POPUP | 619 #ifdef FEAT_PROP_POPUP |
620 screen_zindex = 0; | 620 screen_zindex = 0; |
621 #endif | 621 #endif |
622 } | 622 } |
623 | 623 |
624 #if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX) | 624 #if (defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)) || defined(PROTO) |
625 /* | 625 /* |
626 * Position the info popup relative to the popup menu item. | 626 * Position the info popup relative to the popup menu item. |
627 */ | 627 */ |
628 void | 628 void |
629 pum_position_info_popup(win_T *wp) | 629 pum_position_info_popup(win_T *wp) |
681 int resized = FALSE; | 681 int resized = FALSE; |
682 int context = pum_height / 2; | 682 int context = pum_height / 2; |
683 #ifdef FEAT_QUICKFIX | 683 #ifdef FEAT_QUICKFIX |
684 int prev_selected = pum_selected; | 684 int prev_selected = pum_selected; |
685 #endif | 685 #endif |
686 #ifdef FEAT_PROP_POPUP | 686 #if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX) |
687 int has_info = FALSE; | 687 int has_info = FALSE; |
688 #endif | 688 #endif |
689 | 689 |
690 pum_selected = n; | 690 pum_selected = n; |
691 | 691 |