mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3067: building fails with Athena
Problem: Building fails with Athena. (Elimar Riesebieter) Solution: Adjust #ifdefs and add the 'drop_file' feature.
This commit is contained in:
@@ -4576,6 +4576,13 @@ f_has(typval_T *argvars, typval_T *rettv)
|
||||
1
|
||||
#else
|
||||
0
|
||||
#endif
|
||||
},
|
||||
{"drop_file",
|
||||
#ifdef HAVE_DROP_FILE
|
||||
1
|
||||
#else
|
||||
0
|
||||
#endif
|
||||
},
|
||||
{"emacs_tags",
|
||||
|
@@ -1160,12 +1160,16 @@ endfunc
|
||||
|
||||
" Test for dropping files into a window in GUI
|
||||
func DropFilesInCmdLine()
|
||||
CheckFeature drop_file
|
||||
|
||||
call feedkeys(":\"", 'L')
|
||||
call test_gui_drop_files(['a.c', 'b.c'], &lines, 1, 0)
|
||||
call feedkeys("\<CR>", 'L')
|
||||
endfunc
|
||||
|
||||
func Test_gui_drop_files()
|
||||
CheckFeature drop_file
|
||||
|
||||
call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E474:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E474:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E474:')
|
||||
|
@@ -1260,7 +1260,7 @@ f_test_settime(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
void
|
||||
f_test_gui_drop_files(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
|
||||
{
|
||||
# ifdef FEAT_GUI
|
||||
#if defined(HAVE_DROP_FILE)
|
||||
int row;
|
||||
int col;
|
||||
int_u mods;
|
||||
|
@@ -755,6 +755,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3067,
|
||||
/**/
|
||||
3066,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user