diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-15 09:12:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-15 09:12:47 +0100 |
| commit | 01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775 (patch) | |
| tree | 7420ddb5b932719716cc09dd254fa6fc0e8babaf /src/nvim/getchar.c | |
| parent | 0c799a8f10b345236efca08f51ffece0e1d1e85d (diff) | |
| parent | 35231312d785e4fd1f534e573a43f5a9a4a0fe8f (diff) | |
| download | rneovim-01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775.tar.gz rneovim-01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775.tar.bz2 rneovim-01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775.zip | |
Merge #5607 from justinmk/icm
'inccommand': auto-disable if too slow; fix other behaviors
Diffstat (limited to 'src/nvim/getchar.c')
| -rw-r--r-- | src/nvim/getchar.c | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index dad0ac33cd..ab52ee0372 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1583,29 +1583,27 @@ vungetc ( /* unget one character (can only be done once!) */ old_mouse_col = mouse_col; } -/* - * get a character: - * 1. from the stuffbuffer - * This is used for abbreviated commands like "D" -> "d$". - * Also used to redo a command for ".". - * 2. from the typeahead buffer - * Stores text obtained previously but not used yet. - * Also stores the result of mappings. - * Also used for the ":normal" command. - * 3. from the user - * This may do a blocking wait if "advance" is TRUE. - * - * if "advance" is TRUE (vgetc()): - * really get the character. - * KeyTyped is set to TRUE in the case the user typed the key. - * KeyStuffed is TRUE if the character comes from the stuff buffer. - * if "advance" is FALSE (vpeekc()): - * just look whether there is a character available. - * - * When "no_mapping" is zero, checks for mappings in the current mode. - * Only returns one byte (of a multi-byte character). - * K_SPECIAL and CSI may be escaped, need to get two more bytes then. - */ +/// get a character: +/// 1. from the stuffbuffer +/// This is used for abbreviated commands like "D" -> "d$". +/// Also used to redo a command for ".". +/// 2. from the typeahead buffer +/// Stores text obtained previously but not used yet. +/// Also stores the result of mappings. +/// Also used for the ":normal" command. +/// 3. from the user +/// This may do a blocking wait if "advance" is TRUE. +/// +/// if "advance" is TRUE (vgetc()): +/// really get the character. +/// KeyTyped is set to TRUE in the case the user typed the key. +/// KeyStuffed is TRUE if the character comes from the stuff buffer. +/// if "advance" is FALSE (vpeekc()): +/// just look whether there is a character available. +/// +/// When "no_mapping" is zero, checks for mappings in the current mode. +/// Only returns one byte (of a multi-byte character). +/// K_SPECIAL and CSI may be escaped, need to get two more bytes then. static int vgetorpeek(int advance) { int c, c1; |