mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
fix(termkey): do not sign extend mode value
This commit is contained in:
parent
404043e74c
commit
ce2f770aaa
@ -322,7 +322,7 @@ TermKeyResult termkey_interpret_modereport(TermKey *tk, const TermKeyKey *key, i
|
||||
*initial = key->code.mouse[0];
|
||||
|
||||
if(mode)
|
||||
*mode = (key->code.mouse[1] << 8) | key->code.mouse[2];
|
||||
*mode = ((uint8_t)key->code.mouse[1] << 8) | (uint8_t)key->code.mouse[2];
|
||||
|
||||
if(value)
|
||||
*value = key->code.mouse[3];
|
||||
|
Loading…
Reference in New Issue
Block a user