diff options
| author | Po Lu | 2023-07-26 08:08:11 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-26 08:08:11 +0800 |
| commit | ce63f592f579e8963a3e7f44b31c7df50fb0cdba (patch) | |
| tree | 793f825ecee551a84dd4fce79ff8df9bd91e8d2a /src | |
| parent | b7de14b56fac658411baeaede56416ad322fecfd (diff) | |
| parent | 65834b8f8d53402517da7fe2446f5bac0aa30c39 (diff) | |
| download | emacs-ce63f592f579e8963a3e7f44b31c7df50fb0cdba.tar.gz emacs-ce63f592f579e8963a3e7f44b31c7df50fb0cdba.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'src')
| -rw-r--r-- | src/character.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/character.c b/src/character.c index ae153a579d6..9389e1c0098 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -470,7 +470,7 @@ used for non-Latin and other unusual characters (such as emoji) is | |||
| 470 | ignored as well, as are display properties and invisible text. | 470 | ignored as well, as are display properties and invisible text. |
| 471 | For these reasons, the results are not generally reliable; | 471 | For these reasons, the results are not generally reliable; |
| 472 | for accurate dimensions of text as it will be displayed, | 472 | for accurate dimensions of text as it will be displayed, |
| 473 | use `window-text-pixel-size' instead. | 473 | use `string-pixel-width' or `window-text-pixel-size' instead. |
| 474 | usage: (string-width STRING &optional FROM TO) */) | 474 | usage: (string-width STRING &optional FROM TO) */) |
| 475 | (Lisp_Object str, Lisp_Object from, Lisp_Object to) | 475 | (Lisp_Object str, Lisp_Object from, Lisp_Object to) |
| 476 | { | 476 | { |
diff --git a/src/keyboard.c b/src/keyboard.c index f60b5c95654..ee42b821dfa 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -11659,8 +11659,8 @@ the command loop or by `read-key-sequence'. | |||
| 11659 | The value is always a vector. */) | 11659 | The value is always a vector. */) |
| 11660 | (void) | 11660 | (void) |
| 11661 | { | 11661 | { |
| 11662 | return Fvector (this_command_key_count | 11662 | ptrdiff_t nkeys = this_command_key_count - this_single_command_key_start; |
| 11663 | - this_single_command_key_start, | 11663 | return Fvector (nkeys < 0 ? 0 : nkeys, |
| 11664 | (XVECTOR (this_command_keys)->contents | 11664 | (XVECTOR (this_command_keys)->contents |
| 11665 | + this_single_command_key_start)); | 11665 | + this_single_command_key_start)); |
| 11666 | } | 11666 | } |