comparison src/gui.c @ 12822:0eb12ef4f8ba v8.0.1288

patch 8.0.1288: GUI: cannot drag the statusline of a terminal window commit https://github.com/vim/vim/commit/ae147ab2d7649e7a0bcf11b9f3db1900c1a4d594 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 11 17:09:09 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Sat, 11 Nov 2017 17:15:04 +0100
parents 29a728529f92
children a46dfb3935cf
comparison
equal deleted inserted replaced
12821:4d335cbf1a6d 12822:0eb12ef4f8ba
3116 /* Determine which mouse settings to look for based on the current mode */ 3116 /* Determine which mouse settings to look for based on the current mode */
3117 switch (get_real_state()) 3117 switch (get_real_state())
3118 { 3118 {
3119 case NORMAL_BUSY: 3119 case NORMAL_BUSY:
3120 case OP_PENDING: 3120 case OP_PENDING:
3121 # ifdef FEAT_TERMINAL
3122 case TERMINAL:
3123 # endif
3121 case NORMAL: checkfor = MOUSE_NORMAL; break; 3124 case NORMAL: checkfor = MOUSE_NORMAL; break;
3122 case VISUAL: checkfor = MOUSE_VISUAL; break; 3125 case VISUAL: checkfor = MOUSE_VISUAL; break;
3123 case SELECTMODE: checkfor = MOUSE_VISUAL; break; 3126 case SELECTMODE: checkfor = MOUSE_VISUAL; break;
3124 case REPLACE: 3127 case REPLACE:
3125 case REPLACE+LANGMAP: 3128 case REPLACE+LANGMAP:
3126 #ifdef FEAT_VREPLACE 3129 # ifdef FEAT_VREPLACE
3127 case VREPLACE: 3130 case VREPLACE:
3128 case VREPLACE+LANGMAP: 3131 case VREPLACE+LANGMAP:
3129 #endif 3132 # endif
3130 case INSERT: 3133 case INSERT:
3131 case INSERT+LANGMAP: checkfor = MOUSE_INSERT; break; 3134 case INSERT+LANGMAP: checkfor = MOUSE_INSERT; break;
3132 case ASKMORE: 3135 case ASKMORE:
3133 case HITRETURN: /* At the more- and hit-enter prompt pass the 3136 case HITRETURN: /* At the more- and hit-enter prompt pass the
3134 mouse event for a click on or below the 3137 mouse event for a click on or below the