From a1cb1d1dce14dd005797590721f1bcd0e7c3b35f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 17 Oct 2019 23:00:07 +0200 Subject: 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). --- src/edit.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/edit.c') diff --git a/src/edit.c b/src/edit.c index 78f5cd74fe..4cbfc773b3 100644 --- a/src/edit.c +++ b/src/edit.c @@ -235,7 +235,6 @@ edit( conceal_check_cursor_line(); #endif -#ifdef FEAT_MOUSE /* * When doing a paste with the middle mouse button, Insstart is set to * where the paste started. @@ -243,7 +242,6 @@ edit( if (where_paste_started.lnum != 0) Insstart = where_paste_started; else -#endif { Insstart = curwin->w_cursor; if (startln) @@ -336,7 +334,6 @@ edit( */ if (restart_edit != 0 && stuff_empty()) { -#ifdef FEAT_MOUSE /* * After a paste we consider text typed to be part of the insert for * the pasted text. You can backspace over the pasted text too. @@ -344,7 +341,6 @@ edit( if (where_paste_started.lnum) arrow_used = FALSE; else -#endif arrow_used = TRUE; restart_edit = 0; @@ -381,9 +377,7 @@ edit( /* Need to save the line for undo before inserting the first char. */ ins_need_undo = TRUE; -#ifdef FEAT_MOUSE where_paste_started.lnum = 0; -#endif #ifdef FEAT_CINDENT can_cindent = TRUE; #endif @@ -980,7 +974,6 @@ doESCkey: inserted_space = FALSE; break; -#ifdef FEAT_MOUSE case K_LEFTMOUSE: /* mouse keys */ case K_LEFTMOUSE_NM: case K_LEFTDRAG: @@ -1017,7 +1010,7 @@ doESCkey: case K_MOUSERIGHT: /* Scroll wheel right */ ins_mousescroll(MSCR_RIGHT); break; -#endif + case K_PS: bracketed_paste(PASTE_INSERT, FALSE, NULL); if (cmdchar == K_PS) -- cgit v1.2.3