forked from aniani/vim
Add support for horizontal scroll wheel. (Bjorn Winckler)
This commit is contained in:
@@ -4167,6 +4167,8 @@ check_termcode(max_offset, buf, buflen)
|
||||
&& key_name[0] == (int)KS_EXTRA
|
||||
&& (key_name[1] == (int)KE_X1MOUSE
|
||||
|| key_name[1] == (int)KE_X2MOUSE
|
||||
|| key_name[1] == (int)KE_MOUSELEFT
|
||||
|| key_name[1] == (int)KE_MOUSERIGHT
|
||||
|| key_name[1] == (int)KE_MOUSEDOWN
|
||||
|| key_name[1] == (int)KE_MOUSEUP))
|
||||
{
|
||||
@@ -5054,7 +5056,7 @@ replace_termcodes(from, bufp, from_part, do_lt, special)
|
||||
{
|
||||
/*
|
||||
* If 'cpoptions' does not contain '<', check for special key codes,
|
||||
* like "<C-S-MouseLeft>"
|
||||
* like "<C-S-LeftMouse>"
|
||||
*/
|
||||
if (do_special && (do_lt || STRNCMP(src, "<lt>", 4) != 0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user