Mercurial > vim
diff src/globals.h @ 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 | 506bf60a30a0 |
children | 1848b3e07266 |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -470,7 +470,6 @@ EXTERN bufref_T au_new_curbuf INIT(= {NU EXTERN buf_T *au_pending_free_buf INIT(= NULL); EXTERN win_T *au_pending_free_win INIT(= NULL); -#ifdef FEAT_MOUSE /* * Mouse coordinates, set by check_termcode() */ @@ -480,15 +479,15 @@ EXTERN int mouse_past_bottom INIT(= FALS EXTERN int mouse_past_eol INIT(= FALSE); // mouse right of line EXTERN int mouse_dragging INIT(= 0); // extending Visual area with // mouse dragging -# if defined(FEAT_MOUSE_DEC) +#if defined(FEAT_MOUSE_DEC) /* * When the DEC mouse has been pressed but not yet released we enable * automatic queries for the mouse position. */ EXTERN int WantQueryMouse INIT(= FALSE); -# endif +#endif -# ifdef FEAT_GUI +#ifdef FEAT_GUI // When the window layout is about to be changed, need_mouse_correct is set, // so that gui_mouse_correct() is called afterwards, to correct the mouse // pointer when focus-follow-mouse is being used. @@ -496,10 +495,10 @@ EXTERN int need_mouse_correct INIT(= FAL // When double clicking, topline must be the same EXTERN linenr_T gui_prev_topline INIT(= 0); -# ifdef FEAT_DIFF +# ifdef FEAT_DIFF EXTERN int gui_prev_topfill INIT(= 0); -# endif # endif +#endif # ifdef FEAT_MOUSESHAPE EXTERN int drag_status_line INIT(= FALSE); // dragging the status line @@ -508,7 +507,6 @@ EXTERN int postponed_mouseshape INIT(= F EXTERN int drag_sep_line INIT(= FALSE); // dragging vert separator # endif -#endif #ifdef FEAT_DIFF // Value set from 'diffopt'. @@ -785,13 +783,11 @@ EXTERN int resel_VIsual_mode INIT(= NUL) EXTERN linenr_T resel_VIsual_line_count; // number of lines EXTERN colnr_T resel_VIsual_vcol; // nr of cols or end col -#ifdef FEAT_MOUSE /* * When pasting text with the middle mouse button in visual mode with * restart_edit set, remember where it started so we can set Insstart. */ EXTERN pos_T where_paste_started; -#endif /* * This flag is used to make auto-indent work right on lines where only a