summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-11 17:09:09 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-11 17:09:09 +0100
commitae147ab2d7649e7a0bcf11b9f3db1900c1a4d594 (patch)
tree5be92b86940a7e7e5ac87cf991c9fb826be69222 /src/gui.c
parentaeeb6888ca3ee5122793b37c5aacc6c960b02c37 (diff)
patch 8.0.1288: GUI: cannot drag the statusline of a terminal windowv8.0.1288
Problem: GUI: cannot drag the statusline of a terminal window. Solution: Handle the TERMINAL state. (Hirohito Higashi)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index 74e2c838c3..2ce3009278 100644
--- 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: