]> granicus.if.org Git - vim/commitdiff
patch 8.0.1509: test for failing drag-n-drop command no longer fails v8.0.1509
authorBram Moolenaar <Bram@vim.org>
Mon, 12 Feb 2018 21:49:00 +0000 (22:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 12 Feb 2018 21:49:00 +0000 (22:49 +0100)
Problem:    Test for failing drag-n-drop command no longer fails.
Solution:   Check for the "dnd" feature.

src/testdir/test_normal.vim
src/version.c

index 05aceb33019af1993afe7d38590a16f435b20cd2..27c589783a7acd6f3dd61759070d24152ca6bb2b 100644 (file)
@@ -2176,7 +2176,11 @@ func! Test_normal44_textobjects2()
 endfunc
 
 func! Test_normal45_drop()
-  " basic test for :drop command
+  if !has('dnd')
+    return
+  endif
+
+  " basic test for drag-n-drop
   " unfortunately, without a gui, we can't really test much here,
   " so simply test that ~p fails (which uses the drop register)
   new
index 963e1dcafa1e88635e300dd27a881f046ca29673..beffe2a861b623e5be2ec80f5bcc366a13ae5ae8 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1509,
 /**/
     1508,
 /**/