Mercurial > vim
diff src/edit.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 | fe5afdc03bd2 |
children | 7dd83b5325e9 |
line wrap: on
line diff
--- 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)