Mercurial > vim
changeset 25060:54c0cb81e6a7 v8.2.3067
patch 8.2.3067: building fails with Athena
Commit: https://github.com/vim/vim/commit/1d1ce613cdc74721499660b1d8911de164e2862d
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Jun 2021 19:15:03 +0200 |
parents | 671ded1facd5 |
children | d4239ea7cdd6 |
files | src/evalfunc.c src/testdir/test_gui.vim src/testing.c src/version.c |
diffstat | 4 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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("\<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:')