Skip to content

Commit ae147ab

Browse files
committed
patch 8.0.1288: GUI: cannot drag the statusline of a terminal window
Problem: GUI: cannot drag the statusline of a terminal window. Solution: Handle the TERMINAL state. (Hirohito Higashi)
1 parent aeeb688 commit ae147ab

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/gui.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,15 +3118,18 @@ gui_send_mouse_event(
31183118
{
31193119
case NORMAL_BUSY:
31203120
case OP_PENDING:
3121+
# ifdef FEAT_TERMINAL
3122+
case TERMINAL:
3123+
# endif
31213124
case NORMAL: checkfor = MOUSE_NORMAL; break;
31223125
case VISUAL: checkfor = MOUSE_VISUAL; break;
31233126
case SELECTMODE: checkfor = MOUSE_VISUAL; break;
31243127
case REPLACE:
31253128
case REPLACE+LANGMAP:
3126-
#ifdef FEAT_VREPLACE
3129+
# ifdef FEAT_VREPLACE
31273130
case VREPLACE:
31283131
case VREPLACE+LANGMAP:
3129-
#endif
3132+
# endif
31303133
case INSERT:
31313134
case INSERT+LANGMAP: checkfor = MOUSE_INSERT; break;
31323135
case ASKMORE:

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1288,
764766
/**/
765767
1287,
766768
/**/

0 commit comments

Comments
 (0)