diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-04-10 19:05:16 +0200 |
---|---|---|
committer | Thomas Wienecke <wienecke.t@gmail.com> | 2014-05-03 17:41:05 +0200 |
commit | 3d9a3480dcf0fa25eae560e60eb27991fc9c442c (patch) | |
tree | 9adcc203b4d9ccc2407b7ccba238b68f942595d9 /src | |
parent | f58e888ce678378f1a70bbde4ea531cc88bea0dd (diff) | |
download | rneovim-3d9a3480dcf0fa25eae560e60eb27991fc9c442c.tar.gz rneovim-3d9a3480dcf0fa25eae560e60eb27991fc9c442c.tar.bz2 rneovim-3d9a3480dcf0fa25eae560e60eb27991fc9c442c.zip |
Remove unused function ui_inchar_undo.
Diffstat (limited to 'src')
-rw-r--r-- | src/ui.c | 31 | ||||
-rw-r--r-- | src/ui.h | 1 |
2 files changed, 0 insertions, 32 deletions
@@ -61,37 +61,6 @@ void ui_write(char_u *s, int len) #endif } -#if defined(UNIX) || defined(PROTO) || defined(WIN3264) -/* - * When executing an external program, there may be some typed characters that - * are not consumed by it. Give them back to ui_inchar() and they are stored - * here for the next call. - */ -static char_u *ta_str = NULL; -static int ta_off; /* offset for next char to use when ta_str != NULL */ -static int ta_len; /* length of ta_str when it's not NULL*/ - -void ui_inchar_undo(char_u *s, int len) -{ - char_u *new; - int newlen; - - newlen = len; - if (ta_str != NULL) - newlen += ta_len - ta_off; - new = alloc(newlen); - if (ta_str != NULL) { - memmove(new, ta_str + ta_off, (size_t)(ta_len - ta_off)); - memmove(new + ta_len - ta_off, s, (size_t)len); - vim_free(ta_str); - } else - memmove(new, s, (size_t)len); - ta_str = new; - ta_len = newlen; - ta_off = 0; -} -#endif - /* * ui_inchar(): low level input function. * Get characters from the keyboard. @@ -2,7 +2,6 @@ #define NEOVIM_UI_H /* ui.c */ void ui_write(char_u *s, int len); -void ui_inchar_undo(char_u *s, int len); int ui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); int ui_char_avail(void); void ui_delay(long msec, int ignoreinput); |