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)
ed5ab2a959
This commit is contained in:
Jan Edmund Lazo
2020-02-02 03:10:48 -05:00
parent d6625349f5
commit 5032bc8514

View File

@@ -2495,12 +2495,11 @@ int inchar(
return fix_input_buffer(buf, len); return fix_input_buffer(buf, len);
} }
/* // Fix typed characters for use by vgetc() and check_termcode().
* Fix typed characters for use by vgetc() and check_termcode(). // "buf[]" must have room to triple the number of bytes!
* buf[] must have room to triple the number of bytes! // Returns the new length.
* Returns the new length.
*/
int fix_input_buffer(char_u *buf, int len) int fix_input_buffer(char_u *buf, int len)
FUNC_ATTR_NONNULL_ALL
{ {
if (!using_script()) { if (!using_script()) {
// Should not escape K_SPECIAL/CSI reading input from the user because vim // Should not escape K_SPECIAL/CSI reading input from the user because vim