diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:42:25 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:42:25 -0300 |
commit | 0429857689ba98356bc80d01ebd540fe861e8db2 (patch) | |
tree | b4d039dba9e18a041b00cfe31d954931a97241dd /src/nvim/keymap.c | |
parent | af46564dd6e7e709f269f041f749dc312d9c3773 (diff) | |
parent | 40b7990553997d9eabb21b746346356016b373c5 (diff) | |
download | rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.tar.gz rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.tar.bz2 rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.zip |
Merge PR #1820 'Reimplement builtin terminal UI with termkey/unibilium'
Diffstat (limited to 'src/nvim/keymap.c')
-rw-r--r-- | src/nvim/keymap.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index 251926c01a..8d98a0a95d 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -752,26 +752,3 @@ int get_mouse_button(int code, bool *is_click, bool *is_drag) } return 0; /* Shouldn't get here */ } - -/* - * Return the appropriate pseudo mouse event token (KE_LEFTMOUSE etc) based on - * the given information about which mouse button is down, and whether the - * mouse was clicked, dragged or released. - */ -int -get_pseudo_mouse_code ( - int button, /* eg MOUSE_LEFT */ - int is_click, - int is_drag -) -{ - int i; - - for (i = 0; mouse_table[i].pseudo_code; i++) - if (button == mouse_table[i].button - && is_click == mouse_table[i].is_click - && is_drag == mouse_table[i].is_drag) { - return mouse_table[i].pseudo_code; - } - return (int)KE_IGNORE; /* not recognized, ignore it */ -} |