comparison 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
comparison
equal deleted inserted replaced
18353:c3a0f5d3c9d4 18354:9f51d0cef8da
468 // au_pending_free_buf/ap_pending_free_win, using b_next/w_next. 468 // au_pending_free_buf/ap_pending_free_win, using b_next/w_next.
469 // Free the buffer/window when autocmd_busy is being set to FALSE. 469 // Free the buffer/window when autocmd_busy is being set to FALSE.
470 EXTERN buf_T *au_pending_free_buf INIT(= NULL); 470 EXTERN buf_T *au_pending_free_buf INIT(= NULL);
471 EXTERN win_T *au_pending_free_win INIT(= NULL); 471 EXTERN win_T *au_pending_free_win INIT(= NULL);
472 472
473 #ifdef FEAT_MOUSE
474 /* 473 /*
475 * Mouse coordinates, set by check_termcode() 474 * Mouse coordinates, set by check_termcode()
476 */ 475 */
477 EXTERN int mouse_row; 476 EXTERN int mouse_row;
478 EXTERN int mouse_col; 477 EXTERN int mouse_col;
479 EXTERN int mouse_past_bottom INIT(= FALSE);// mouse below last line 478 EXTERN int mouse_past_bottom INIT(= FALSE);// mouse below last line
480 EXTERN int mouse_past_eol INIT(= FALSE); // mouse right of line 479 EXTERN int mouse_past_eol INIT(= FALSE); // mouse right of line
481 EXTERN int mouse_dragging INIT(= 0); // extending Visual area with 480 EXTERN int mouse_dragging INIT(= 0); // extending Visual area with
482 // mouse dragging 481 // mouse dragging
483 # if defined(FEAT_MOUSE_DEC) 482 #if defined(FEAT_MOUSE_DEC)
484 /* 483 /*
485 * When the DEC mouse has been pressed but not yet released we enable 484 * When the DEC mouse has been pressed but not yet released we enable
486 * automatic queries for the mouse position. 485 * automatic queries for the mouse position.
487 */ 486 */
488 EXTERN int WantQueryMouse INIT(= FALSE); 487 EXTERN int WantQueryMouse INIT(= FALSE);
489 # endif 488 #endif
490 489
491 # ifdef FEAT_GUI 490 #ifdef FEAT_GUI
492 // When the window layout is about to be changed, need_mouse_correct is set, 491 // When the window layout is about to be changed, need_mouse_correct is set,
493 // so that gui_mouse_correct() is called afterwards, to correct the mouse 492 // so that gui_mouse_correct() is called afterwards, to correct the mouse
494 // pointer when focus-follow-mouse is being used. 493 // pointer when focus-follow-mouse is being used.
495 EXTERN int need_mouse_correct INIT(= FALSE); 494 EXTERN int need_mouse_correct INIT(= FALSE);
496 495
497 // When double clicking, topline must be the same 496 // When double clicking, topline must be the same
498 EXTERN linenr_T gui_prev_topline INIT(= 0); 497 EXTERN linenr_T gui_prev_topline INIT(= 0);
499 # ifdef FEAT_DIFF 498 # ifdef FEAT_DIFF
500 EXTERN int gui_prev_topfill INIT(= 0); 499 EXTERN int gui_prev_topfill INIT(= 0);
501 # endif 500 # endif
502 # endif 501 #endif
503 502
504 # ifdef FEAT_MOUSESHAPE 503 # ifdef FEAT_MOUSESHAPE
505 EXTERN int drag_status_line INIT(= FALSE); // dragging the status line 504 EXTERN int drag_status_line INIT(= FALSE); // dragging the status line
506 EXTERN int postponed_mouseshape INIT(= FALSE); // postponed updating the 505 EXTERN int postponed_mouseshape INIT(= FALSE); // postponed updating the
507 // mouse pointer shape 506 // mouse pointer shape
508 EXTERN int drag_sep_line INIT(= FALSE); // dragging vert separator 507 EXTERN int drag_sep_line INIT(= FALSE); // dragging vert separator
509 # endif 508 # endif
510 509
511 #endif
512 510
513 #ifdef FEAT_DIFF 511 #ifdef FEAT_DIFF
514 // Value set from 'diffopt'. 512 // Value set from 'diffopt'.
515 EXTERN int diff_context INIT(= 6); // context for folds 513 EXTERN int diff_context INIT(= 6); // context for folds
516 EXTERN int diff_foldcolumn INIT(= 2); // 'foldcolumn' for diff mode 514 EXTERN int diff_foldcolumn INIT(= 2); // 'foldcolumn' for diff mode
783 */ 781 */
784 EXTERN int resel_VIsual_mode INIT(= NUL); // 'v', 'V', or Ctrl-V 782 EXTERN int resel_VIsual_mode INIT(= NUL); // 'v', 'V', or Ctrl-V
785 EXTERN linenr_T resel_VIsual_line_count; // number of lines 783 EXTERN linenr_T resel_VIsual_line_count; // number of lines
786 EXTERN colnr_T resel_VIsual_vcol; // nr of cols or end col 784 EXTERN colnr_T resel_VIsual_vcol; // nr of cols or end col
787 785
788 #ifdef FEAT_MOUSE
789 /* 786 /*
790 * When pasting text with the middle mouse button in visual mode with 787 * When pasting text with the middle mouse button in visual mode with
791 * restart_edit set, remember where it started so we can set Insstart. 788 * restart_edit set, remember where it started so we can set Insstart.
792 */ 789 */
793 EXTERN pos_T where_paste_started; 790 EXTERN pos_T where_paste_started;
794 #endif
795 791
796 /* 792 /*
797 * This flag is used to make auto-indent work right on lines where only a 793 * This flag is used to make auto-indent work right on lines where only a
798 * <RETURN> or <ESC> is typed. It is set when an auto-indent is done, and 794 * <RETURN> or <ESC> is typed. It is set when an auto-indent is done, and
799 * reset when any other editing is done on the line. If an <ESC> or <RETURN> 795 * reset when any other editing is done on the line. If an <ESC> or <RETURN>