comparison src/term.c @ 12865:ebb4f6c93598 v8.0.1309

patch 8.0.1309: cannot use 'balloonexpr' in a terminal commit https://github.com/vim/vim/commit/51b0f3701ecb440aa72ab6017c1df6940c0e0f6f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 18 18:52:04 2017 +0100 patch 8.0.1309: cannot use 'balloonexpr' in a terminal Problem: Cannot use 'balloonexpr' in a terminal. Solution: Add 'balloonevalterm' and add code to handle mouse movements in a terminal. Initial implementation for Unix with GUI.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Nov 2017 19:00:06 +0100
parents b2a8d6ef578b
children d872005ecfcd
comparison
equal deleted inserted replaced
12864:e98532b79dba 12865:ebb4f6c93598
5623 modifiers |= MOD_MASK_CTRL; 5623 modifiers |= MOD_MASK_CTRL;
5624 if (wheel_code & MOUSE_ALT) 5624 if (wheel_code & MOUSE_ALT)
5625 modifiers |= MOD_MASK_ALT; 5625 modifiers |= MOD_MASK_ALT;
5626 key_name[1] = (wheel_code & 1) 5626 key_name[1] = (wheel_code & 1)
5627 ? (int)KE_MOUSEUP : (int)KE_MOUSEDOWN; 5627 ? (int)KE_MOUSEUP : (int)KE_MOUSEDOWN;
5628 held_button = MOUSE_RELEASE;
5628 } 5629 }
5629 else 5630 else
5630 key_name[1] = get_pseudo_mouse_code(current_button, 5631 key_name[1] = get_pseudo_mouse_code(current_button,
5631 is_click, is_drag); 5632 is_click, is_drag);
5632 5633