|
1 | | -*eval.txt* For Vim version 8.0. Last change: 2017 Jun 25 |
| 1 | +*eval.txt* For Vim version 8.0. Last change: 2017 Jul 08 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -4189,14 +4189,14 @@ getchar([expr]) *getchar()* |
4189 | 4189 | not consumed. Return zero if no character available. |
4190 | 4190 |
|
4191 | 4191 | Without [expr] and when [expr] is 0 a whole character or |
4192 | | - special key is returned. If it is an 8-bit character, the |
| 4192 | + special key is returned. If it is a single character, the |
4193 | 4193 | result is a number. Use nr2char() to convert it to a String. |
4194 | 4194 | Otherwise a String is returned with the encoded character. |
4195 | | - For a special key it's a sequence of bytes starting with 0x80 |
4196 | | - (decimal: 128). This is the same value as the string |
4197 | | - "\<Key>", e.g., "\<Left>". The returned value is also a |
4198 | | - String when a modifier (shift, control, alt) was used that is |
4199 | | - not included in the character. |
| 4195 | + For a special key it's a String with a sequence of bytes |
| 4196 | + starting with 0x80 (decimal: 128). This is the same value as |
| 4197 | + the String "\<Key>", e.g., "\<Left>". The returned value is |
| 4198 | + also a String when a modifier (shift, control, alt) was used |
| 4199 | + that is not included in the character. |
4200 | 4200 |
|
4201 | 4201 | When [expr] is 0 and Esc is typed, there will be a short delay |
4202 | 4202 | while Vim waits to see if this is the start of an escape |
@@ -8017,6 +8017,10 @@ timer_start({time}, {callback} [, {options}]) |
8017 | 8017 | "repeat" Number of times to repeat calling the |
8018 | 8018 | callback. -1 means forever. When not present |
8019 | 8019 | the callback will be called once. |
| 8020 | + If the timer causes an error three times in a |
| 8021 | + row the repeat is cancelled. This avoids that |
| 8022 | + Vim becomes unusable because of all the error |
| 8023 | + messages. |
8020 | 8024 |
|
8021 | 8025 | Example: > |
8022 | 8026 | func MyHandler(timer) |
|
0 commit comments