summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-17 23:00:07 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-17 23:00:07 +0200
commita1cb1d1dce14dd005797590721f1bcd0e7c3b35f (patch)
treebe364e198e623b25d59e58d205e598fd954d3f17 /src/ex_getln.c
parent0d2c4bf1714a6b286bd7a10061044414e0b17a15 (diff)
downloadvim-git-a1cb1d1dce14dd005797590721f1bcd0e7c3b35f.tar.gz
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.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 838bd8404..5816f3f9e 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 */