diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-17 23:00:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-17 23:00:07 +0200 |
commit | a1cb1d1dce14dd005797590721f1bcd0e7c3b35f (patch) | |
tree | be364e198e623b25d59e58d205e598fd954d3f17 /src/ex_getln.c | |
parent | 0d2c4bf1714a6b286bd7a10061044414e0b17a15 (diff) |
patch 8.1.2171: mouse support not always availablev8.1.2171
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).
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 838bd84045..5816f3f9e7 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -795,11 +795,9 @@ getcmdline_int( int save_msg_scroll = msg_scroll; int save_State = State; /* remember State when called */ int some_key_typed = FALSE; /* one of the keys was typed */ -#ifdef FEAT_MOUSE /* mouse drag and release events are ignored, unless they are * preceded with a mouse down event */ int ignore_drag_release = TRUE; -#endif #ifdef FEAT_EVAL int break_ctrl_c = FALSE; #endif @@ -1856,7 +1854,6 @@ getcmdline_int( break; #endif -#ifdef FEAT_MOUSE case K_MIDDLEDRAG: case K_MIDDLERELEASE: goto cmdline_not_changed; /* Ignore mouse */ @@ -1961,8 +1958,6 @@ getcmdline_int( case K_MOUSEMOVE: goto cmdline_not_changed; -#endif /* FEAT_MOUSE */ - #ifdef FEAT_GUI case K_LEFTMOUSE_NM: /* mousefocus click, ignored */ case K_LEFTRELEASE_NM: @@ -2195,9 +2190,7 @@ getcmdline_int( case Ctrl_V: case Ctrl_Q: -#ifdef FEAT_MOUSE ignore_drag_release = TRUE; -#endif putcmdline('^', TRUE); c = get_literal(); /* get next (two) character(s) */ do_abbr = FALSE; /* don't do abbreviation now */ @@ -2213,13 +2206,11 @@ getcmdline_int( #ifdef FEAT_DIGRAPHS case Ctrl_K: -#ifdef FEAT_MOUSE ignore_drag_release = TRUE; -#endif putcmdline('?', TRUE); -#ifdef USE_ON_FLY_SCROLL +# ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; /* disallow scrolling here */ -#endif +# endif c = get_digraph(TRUE); extra_char = NUL; if (c != NUL) @@ -2227,7 +2218,7 @@ getcmdline_int( redrawcmd(); goto cmdline_not_changed; -#endif /* FEAT_DIGRAPHS */ +#endif // FEAT_DIGRAPHS #ifdef FEAT_RIGHTLEFT case Ctrl__: /* CTRL-_: switch language mode */ |