Mercurial > vim
comparison src/proto/ui.pro @ 13060:1bdc12630fc0 v8.0.1405
patch 8.0.1405: duplicated code for getting a typed character
commit https://github.com/vim/vim/commit/c9e649ae816cdff0d1da8a97d40e695c6d3991bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 18 18:14:47 2017 +0100
patch 8.0.1405: duplicated code for getting a typed character
Problem: Duplicated code for getting a typed character. CursorHold is
called too often in the GUI. (lilydjwg)
Solution: Refactor code to move code up from mch_inchar(). Don't fire
CursorHold if feedkeys() was used. (closes #2451)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 18 Dec 2017 18:15:05 +0100 |
parents | ca4931a20f8c |
children | 59a1ff689b4d |
comparison
equal
deleted
inserted
replaced
13059:5c8106a75f25 | 13060:1bdc12630fc0 |
---|---|
1 /* ui.c */ | 1 /* ui.c */ |
2 void ui_write(char_u *s, int len); | 2 void ui_write(char_u *s, int len); |
3 void ui_inchar_undo(char_u *s, int len); | 3 void ui_inchar_undo(char_u *s, int len); |
4 int ui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); | 4 int ui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); |
5 int ui_wait_for_chars_or_timer(long wtime, int (*wait_func)(long wtime, int *interrupted, int ignore_input), int *interrupted, int ignore_input); | |
5 int ui_char_avail(void); | 6 int ui_char_avail(void); |
6 void ui_delay(long msec, int ignoreinput); | 7 void ui_delay(long msec, int ignoreinput); |
7 void ui_suspend(void); | 8 void ui_suspend(void); |
8 void suspend_shell(void); | 9 void suspend_shell(void); |
9 int ui_get_shellsize(void); | 10 int ui_get_shellsize(void); |