# HG changeset patch # User Bram Moolenaar # Date 1624814103 -7200 # Node ID 54c0cb81e6a7601a3fe8fe589cc46fe30a3ae698 # Parent 671ded1facd5e717672bb0669a636e0ce747d1a9 patch 8.2.3067: building fails with Athena Commit: https://github.com/vim/vim/commit/1d1ce613cdc74721499660b1d8911de164e2862d Author: Bram Moolenaar Date: Sun Jun 27 19:02:52 2021 +0200 patch 8.2.3067: building fails with Athena Problem: Building fails with Athena. (Elimar Riesebieter) Solution: Adjust #ifdefs and add the 'drop_file' feature. diff --git a/src/evalfunc.c b/src/evalfunc.c --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4578,6 +4578,13 @@ f_has(typval_T *argvars, typval_T *rettv 0 #endif }, + {"drop_file", +#ifdef HAVE_DROP_FILE + 1 +#else + 0 +#endif + }, {"emacs_tags", #ifdef FEAT_EMACS_TAGS 1 diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -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("\", '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:') diff --git a/src/testing.c b/src/testing.c --- a/src/testing.c +++ b/src/testing.c @@ -1260,7 +1260,7 @@ f_test_settime(typval_T *argvars, typval 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3067, +/**/ 3066, /**/ 3065,