patch 8.0.1288: GUI: cannot drag the statusline of a terminal window v8.0.1288
authorBram Moolenaar <Bram@vim.org>
Sat, 11 Nov 2017 16:09:09 +0000 (17:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 11 Nov 2017 16:09:09 +0000 (17:09 +0100)
Problem:    GUI: cannot drag the statusline of a terminal window.
Solution:   Handle the TERMINAL state. (Hirohito Higashi)

src/gui.c
src/version.c

index 74e2c838c39fe7a17a5442065f2d3672fd3a9e18..2ce30092781016905da3322075ae1f504d375357 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -3118,15 +3118,18 @@ button_set:
     {
        case NORMAL_BUSY:
        case OP_PENDING:
+# ifdef FEAT_TERMINAL
+       case TERMINAL:
+# endif
        case NORMAL:            checkfor = MOUSE_NORMAL;        break;
        case VISUAL:            checkfor = MOUSE_VISUAL;        break;
        case SELECTMODE:        checkfor = MOUSE_VISUAL;        break;
        case REPLACE:
        case REPLACE+LANGMAP:
-#ifdef FEAT_VREPLACE
+# ifdef FEAT_VREPLACE
        case VREPLACE:
        case VREPLACE+LANGMAP:
-#endif
+# endif
        case INSERT:
        case INSERT+LANGMAP:    checkfor = MOUSE_INSERT;        break;
        case ASKMORE:
index 89f40461c839c790158e451daa92ae1fb7ce64f4..ee1974541d375a802d28411251f59ca8c8c0ea47 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1288,
 /**/
     1287,
 /**/