diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-04 16:58:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-04 16:58:45 +0200 |
commit | bedf091a951bdcd5f9f13839c0aaf2e395a635f6 (patch) | |
tree | cd1e9187410904f63d35592d9e476f95ab8b29f2 /src/os_unix.c | |
parent | d2fad67e3eb71f48d23f283ef8e7b7ddf4ee180f (diff) | |
download | vim-git-bedf091a951bdcd5f9f13839c0aaf2e395a635f6.tar.gz |
patch 8.1.1265: when GPM mouse support is enabled double clicks do not workv8.1.1265
Problem: When GPM mouse support is enabled double clicks in xterm do not
work.
Solution: Use KS_GPM_MOUSE for GPM mouse events.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index ba5d386bb..9f8a7b110 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3794,7 +3794,10 @@ check_mouse_termcode(void) && !gui.in_use # endif ) - set_mouse_termcode(KS_MOUSE, (char_u *)IF_EB("\033MG", ESC_STR "MG")); + set_mouse_termcode(KS_GPM_MOUSE, + (char_u *)IF_EB("\033MG", ESC_STR "MG")); + else + del_mouse_termcode(KS_GPM_MOUSE); # endif # ifdef FEAT_SYSMOUSE @@ -7065,7 +7068,8 @@ gpm_close(void) Gpm_Close(); } -/* Reads gpm event and adds special keys to input buf. Returns length of +/* + * Reads gpm event and adds special keys to input buf. Returns length of * generated key sequence. * This function is styled after gui_send_mouse_event(). */ |