Mercurial > vim
comparison src/misc2.c @ 18064:8b4f9be5db73 v8.1.2027
patch 8.1.2027: MS-Windows: problem with ambiwidth characters
Commit: https://github.com/vim/vim/commit/57da69816872d53038e8a7e8dd4dc39a31192f0d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 13 22:30:11 2019 +0200
patch 8.1.2027: MS-Windows: problem with ambiwidth characters
Problem: MS-Windows: problem with ambiwidth characters.
Solution: handle ambiguous width characters in ConPTY on Windows 10 (1903).
(Nobuhiro Takasaki, closes #4411)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 13 Sep 2019 22:45:04 +0200 |
parents | 8f4cc259ed7a |
children | a1396a35444c |
comparison
equal
deleted
inserted
replaced
18063:168f1eca04a2 | 18064:8b4f9be5db73 |
---|---|
4599 (*argv)[*argc] = NULL; | 4599 (*argv)[*argc] = NULL; |
4600 return OK; | 4600 return OK; |
4601 } | 4601 } |
4602 # endif | 4602 # endif |
4603 #endif | 4603 #endif |
4604 | |
4605 /* | |
4606 * Change the behavior of vterm. | |
4607 * 0: As usual. | |
4608 * 1: Windows 10 version 1809 | |
4609 * The bug causes unstable handling of ambiguous width character. | |
4610 * 2: Windows 10 version 1903 | |
4611 * Use the wrong result because each result is different. | |
4612 * 3: Windows 10 insider preview (current latest logic) | |
4613 */ | |
4614 int | |
4615 get_special_pty_type(void) | |
4616 { | |
4617 #ifdef MSWIN | |
4618 return get_conpty_type(); | |
4619 #else | |
4620 return 0; | |
4621 #endif | |
4622 } |