0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0909: MS-Windows: using ConPTY even though it is not stable

Problem:    MS-Windows: using ConPTY even though it is not stable.
Solution:   When ConPTY version is unstable, prefer using winpty. (Ken Takata,
            closes #3949)
This commit is contained in:
Bram Moolenaar
2019-02-13 19:23:10 +01:00
parent 9403a2168d
commit d9ef1b8d77
5 changed files with 32 additions and 11 deletions

View File

@@ -5521,7 +5521,7 @@ dyn_conpty_init(int verbose)
if (handled)
return result;
if (!has_vtp_working())
if (!has_conpty_working())
{
handled = TRUE;
result = FAIL;
@@ -6139,7 +6139,7 @@ term_and_job_init(
if (tty_type == NUL)
{
if (has_conpty)
if (has_conpty && (is_conpty_stable() || !has_winpty))
use_conpty = TRUE;
else if (has_winpty)
use_winpty = TRUE;