Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 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 | ae2bd5ec98d0 |
comparison
equal
deleted
inserted
replaced
18766:3cc0ddf2abd0 | 18767:068337e86133 |
---|---|
2698 call delete('XtestPopupCursorLine') | 2698 call delete('XtestPopupCursorLine') |
2699 endfunc | 2699 endfunc |
2700 | 2700 |
2701 func Test_previewpopup() | 2701 func Test_previewpopup() |
2702 CheckScreendump | 2702 CheckScreendump |
2703 CheckFeature quickfix | |
2703 | 2704 |
2704 call writefile([ | 2705 call writefile([ |
2705 \ "!_TAG_FILE_ENCODING\tutf-8\t//", | 2706 \ "!_TAG_FILE_ENCODING\tutf-8\t//", |
2706 \ "another\tXtagfile\t/^this is another", | 2707 \ "another\tXtagfile\t/^this is another", |
2707 \ "theword\tXtagfile\t/^theword"], | 2708 \ "theword\tXtagfile\t/^theword"], |
2869 return lines | 2870 return lines |
2870 endfunc | 2871 endfunc |
2871 | 2872 |
2872 func Test_popupmenu_info_border() | 2873 func Test_popupmenu_info_border() |
2873 CheckScreendump | 2874 CheckScreendump |
2875 CheckFeature quickfix | |
2874 | 2876 |
2875 let lines = Get_popupmenu_lines() | 2877 let lines = Get_popupmenu_lines() |
2876 call add(lines, 'set completepopup=height:4,highlight:InfoPopup') | 2878 call add(lines, 'set completepopup=height:4,highlight:InfoPopup') |
2877 call writefile(lines, 'XtestInfoPopup') | 2879 call writefile(lines, 'XtestInfoPopup') |
2878 | 2880 |
2906 call delete('XtestInfoPopup') | 2908 call delete('XtestInfoPopup') |
2907 endfunc | 2909 endfunc |
2908 | 2910 |
2909 func Test_popupmenu_info_noborder() | 2911 func Test_popupmenu_info_noborder() |
2910 CheckScreendump | 2912 CheckScreendump |
2913 CheckFeature quickfix | |
2911 | 2914 |
2912 let lines = Get_popupmenu_lines() | 2915 let lines = Get_popupmenu_lines() |
2913 call add(lines, 'set completepopup=height:4,border:off') | 2916 call add(lines, 'set completepopup=height:4,border:off') |
2914 call writefile(lines, 'XtestInfoPopupNb') | 2917 call writefile(lines, 'XtestInfoPopupNb') |
2915 | 2918 |
2923 call delete('XtestInfoPopupNb') | 2926 call delete('XtestInfoPopupNb') |
2924 endfunc | 2927 endfunc |
2925 | 2928 |
2926 func Test_popupmenu_info_align_menu() | 2929 func Test_popupmenu_info_align_menu() |
2927 CheckScreendump | 2930 CheckScreendump |
2931 CheckFeature quickfix | |
2928 | 2932 |
2929 let lines = Get_popupmenu_lines() | 2933 let lines = Get_popupmenu_lines() |
2930 call add(lines, 'set completepopup=height:4,border:off,align:menu') | 2934 call add(lines, 'set completepopup=height:4,border:off,align:menu') |
2931 call writefile(lines, 'XtestInfoPopupNb') | 2935 call writefile(lines, 'XtestInfoPopupNb') |
2932 | 2936 |
2953 call delete('XtestInfoPopupNb') | 2957 call delete('XtestInfoPopupNb') |
2954 endfunc | 2958 endfunc |
2955 | 2959 |
2956 func Test_popupmenu_info_hidden() | 2960 func Test_popupmenu_info_hidden() |
2957 CheckScreendump | 2961 CheckScreendump |
2962 CheckFeature quickfix | |
2958 | 2963 |
2959 let lines = Get_popupmenu_lines() | 2964 let lines = Get_popupmenu_lines() |
2960 call add(lines, 'call InfoHidden()') | 2965 call add(lines, 'call InfoHidden()') |
2961 call writefile(lines, 'XtestInfoPopupHidden') | 2966 call writefile(lines, 'XtestInfoPopupHidden') |
2962 | 2967 |