mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user