To: vim_dev@googlegroups.com Subject: Patch 8.2.3067 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3067 Problem: Building fails with Athena. (Elimar Riesebieter) Solution: Adjust #ifdefs and add the 'drop_file' feature. Files: src/evalfunc.c, src/testing.c, src/testdir/test_gui.vim *** ../vim-8.2.3066/src/evalfunc.c 2021-06-24 19:55:23.906419441 +0200 --- src/evalfunc.c 2021-06-27 18:57:51.566510005 +0200 *************** *** 4578,4583 **** --- 4578,4590 ---- 0 #endif }, + {"drop_file", + #ifdef HAVE_DROP_FILE + 1 + #else + 0 + #endif + }, {"emacs_tags", #ifdef FEAT_EMACS_TAGS 1 *** ../vim-8.2.3066/src/testing.c 2021-06-23 20:46:46.914256853 +0200 --- src/testing.c 2021-06-27 18:50:43.159321851 +0200 *************** *** 1260,1266 **** void f_test_gui_drop_files(typval_T *argvars UNUSED, typval_T *rettv UNUSED) { ! # ifdef FEAT_GUI int row; int col; int_u mods; --- 1260,1266 ---- void f_test_gui_drop_files(typval_T *argvars UNUSED, typval_T *rettv UNUSED) { ! #if defined(HAVE_DROP_FILE) int row; int col; int_u mods; *** ../vim-8.2.3066/src/testdir/test_gui.vim 2021-06-23 20:46:46.914256853 +0200 --- src/testdir/test_gui.vim 2021-06-27 19:01:49.966051240 +0200 *************** *** 1160,1171 **** --- 1160,1175 ---- " 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:') *** ../vim-8.2.3066/src/version.c 2021-06-27 16:29:50.119042807 +0200 --- src/version.c 2021-06-27 19:02:29.517970702 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3067, /**/ -- It was recently discovered that research causes cancer in rats. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///