Mercurial > vim
comparison src/misc1.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 | 18d7337b6837 |
comparison
equal
deleted
inserted
replaced
18353:c3a0f5d3c9d4 | 18354:9f51d0cef8da |
---|---|
845 if (n == K_SPECIAL) | 845 if (n == K_SPECIAL) |
846 { | 846 { |
847 n = TO_SPECIAL(buf[1], buf[2]); | 847 n = TO_SPECIAL(buf[1], buf[2]); |
848 if (buf[1] == KS_MODIFIER | 848 if (buf[1] == KS_MODIFIER |
849 || n == K_IGNORE | 849 || n == K_IGNORE |
850 #ifdef FEAT_MOUSE | |
851 || (is_mouse_key(n) && n != K_LEFTMOUSE) | 850 || (is_mouse_key(n) && n != K_LEFTMOUSE) |
852 #endif | |
853 #ifdef FEAT_GUI | 851 #ifdef FEAT_GUI |
854 || n == K_VER_SCROLLBAR | 852 || n == K_VER_SCROLLBAR |
855 || n == K_HOR_SCROLLBAR | 853 || n == K_HOR_SCROLLBAR |
856 #endif | 854 #endif |
857 ) | 855 ) |
927 msg_puts("\b \b"); | 925 msg_puts("\b \b"); |
928 --typed; | 926 --typed; |
929 } | 927 } |
930 n /= 10; | 928 n /= 10; |
931 } | 929 } |
932 #ifdef FEAT_MOUSE | |
933 else if (mouse_used != NULL && c == K_LEFTMOUSE) | 930 else if (mouse_used != NULL && c == K_LEFTMOUSE) |
934 { | 931 { |
935 *mouse_used = TRUE; | 932 *mouse_used = TRUE; |
936 n = mouse_row + 1; | 933 n = mouse_row + 1; |
937 break; | 934 break; |
938 } | 935 } |
939 #endif | |
940 else if (n == 0 && c == ':' && colon) | 936 else if (n == 0 && c == ':' && colon) |
941 { | 937 { |
942 stuffcharReadbuff(':'); | 938 stuffcharReadbuff(':'); |
943 if (!exmode_active) | 939 if (!exmode_active) |
944 cmdline_row = msg_row; | 940 cmdline_row = msg_row; |