diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-13 22:30:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-13 22:30:11 +0200 |
commit | 57da69816872d53038e8a7e8dd4dc39a31192f0d (patch) | |
tree | 39106371159bdf50be5a35c4da1e542d0601f0eb /src/misc2.c | |
parent | dbec74907eb614517bcf27116d5aad32e087f241 (diff) | |
download | vim-git-57da69816872d53038e8a7e8dd4dc39a31192f0d.tar.gz |
patch 8.1.2027: MS-Windows: problem with ambiwidth charactersv8.1.2027
Problem: MS-Windows: problem with ambiwidth characters.
Solution: handle ambiguous width characters in ConPTY on Windows 10 (1903).
(Nobuhiro Takasaki, closes #4411)
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c index e0df7c839..0d6c514ab 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -4601,3 +4601,22 @@ build_argv_from_list(list_T *l, char ***argv, int *argc) } # endif #endif + +/* + * Change the behavior of vterm. + * 0: As usual. + * 1: Windows 10 version 1809 + * The bug causes unstable handling of ambiguous width character. + * 2: Windows 10 version 1903 + * Use the wrong result because each result is different. + * 3: Windows 10 insider preview (current latest logic) + */ + int +get_special_pty_type(void) +{ +#ifdef MSWIN + return get_conpty_type(); +#else + return 0; +#endif +} |