comparison src/message.c @ 18354:9f51d0cef8da v8.1.2171

patch 8.1.2171: mouse support not always available Commit: https://github.com/vim/vim/commit/a1cb1d1dce14dd005797590721f1bcd0e7c3b35f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 17 23:00:07 2019 +0200 patch 8.1.2171: mouse support not always available Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Oct 2019 23:15:04 +0200
parents 2047cb93eb0c
children 9e6d5a4abb1c
comparison
equal deleted inserted replaced
18353:c3a0f5d3c9d4 18354:9f51d0cef8da
1198 } while ((had_got_int && c == Ctrl_C) 1198 } while ((had_got_int && c == Ctrl_C)
1199 || c == K_IGNORE 1199 || c == K_IGNORE
1200 #ifdef FEAT_GUI 1200 #ifdef FEAT_GUI
1201 || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR 1201 || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR
1202 #endif 1202 #endif
1203 #ifdef FEAT_MOUSE
1204 || c == K_LEFTDRAG || c == K_LEFTRELEASE 1203 || c == K_LEFTDRAG || c == K_LEFTRELEASE
1205 || c == K_MIDDLEDRAG || c == K_MIDDLERELEASE 1204 || c == K_MIDDLEDRAG || c == K_MIDDLERELEASE
1206 || c == K_RIGHTDRAG || c == K_RIGHTRELEASE 1205 || c == K_RIGHTDRAG || c == K_RIGHTRELEASE
1207 || c == K_MOUSELEFT || c == K_MOUSERIGHT 1206 || c == K_MOUSELEFT || c == K_MOUSERIGHT
1208 || c == K_MOUSEDOWN || c == K_MOUSEUP 1207 || c == K_MOUSEDOWN || c == K_MOUSEUP
1212 && (c == K_LEFTMOUSE 1211 && (c == K_LEFTMOUSE
1213 || c == K_MIDDLEMOUSE 1212 || c == K_MIDDLEMOUSE
1214 || c == K_RIGHTMOUSE 1213 || c == K_RIGHTMOUSE
1215 || c == K_X1MOUSE 1214 || c == K_X1MOUSE
1216 || c == K_X2MOUSE)) 1215 || c == K_X2MOUSE))
1217 #endif
1218 ); 1216 );
1219 ui_breakcheck(); 1217 ui_breakcheck();
1220 #ifdef FEAT_MOUSE
1221 /* 1218 /*
1222 * Avoid that the mouse-up event causes visual mode to start. 1219 * Avoid that the mouse-up event causes visual mode to start.
1223 */ 1220 */
1224 if (c == K_LEFTMOUSE || c == K_MIDDLEMOUSE || c == K_RIGHTMOUSE 1221 if (c == K_LEFTMOUSE || c == K_MIDDLEMOUSE || c == K_RIGHTMOUSE
1225 || c == K_X1MOUSE || c == K_X2MOUSE) 1222 || c == K_X1MOUSE || c == K_X2MOUSE)
1226 (void)jump_to_mouse(MOUSE_SETPOS, NULL, 0); 1223 (void)jump_to_mouse(MOUSE_SETPOS, NULL, 0);
1227 else 1224 else if (vim_strchr((char_u *)"\r\n ", c) == NULL && c != Ctrl_C)
1228 #endif
1229 if (vim_strchr((char_u *)"\r\n ", c) == NULL && c != Ctrl_C)
1230 { 1225 {
1231 /* Put the character back in the typeahead buffer. Don't use the 1226 /* Put the character back in the typeahead buffer. Don't use the
1232 * stuff buffer, because lmaps wouldn't work. */ 1227 * stuff buffer, because lmaps wouldn't work. */
1233 ins_char_typebuf(c); 1228 ins_char_typebuf(c);
1234 do_redraw = TRUE; /* need a redraw even though there is 1229 do_redraw = TRUE; /* need a redraw even though there is