diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-02 03:10:48 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-02 03:14:39 -0500 |
commit | 5032bc85144f929e0a3fef0df694ae08b3c52d14 (patch) | |
tree | 73a5cc290f3ba314bc906904509d1da3ffad997d /src | |
parent | d6625349f50bb7326a39728d182d58808a6f0f29 (diff) | |
download | rneovim-5032bc85144f929e0a3fef0df694ae08b3c52d14.tar.gz rneovim-5032bc85144f929e0a3fef0df694ae08b3c52d14.tar.bz2 rneovim-5032bc85144f929e0a3fef0df694ae08b3c52d14.zip |
vim-patch:8.1.1269: MS-Windows GUI: multibyte chars with a 0x80 byte do not work
Problem: MS-Windows GUI: multibyte chars with a 0x80 byte do not work when
compiled with VIMDLL.
Solution: Adjust the condition for fixing the input buffer. (Ken Takata,
closes vim/vim#4330)
https://github.com/vim/vim/commit/ed5ab2a95972b5ef588bdafab9f197e1dcf0c1df
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/getchar.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index bf72f03729..d70d04cb4b 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -2495,12 +2495,11 @@ int inchar( return fix_input_buffer(buf, len); } -/* - * Fix typed characters for use by vgetc() and check_termcode(). - * buf[] must have room to triple the number of bytes! - * Returns the new length. - */ +// Fix typed characters for use by vgetc() and check_termcode(). +// "buf[]" must have room to triple the number of bytes! +// Returns the new length. int fix_input_buffer(char_u *buf, int len) + FUNC_ATTR_NONNULL_ALL { if (!using_script()) { // Should not escape K_SPECIAL/CSI reading input from the user because vim |