summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-13 19:23:10 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-13 19:23:10 +0100
commitd9ef1b8d77f304c83241f807c17ffa26c9033778 (patch)
tree6ee2529331b75406746e699dc7af020e00ecdf7b /src/terminal.c
parent9403a2168db82b7de80f792984084bb3f00e2263 (diff)
downloadvim-git-d9ef1b8d77f304c83241f807c17ffa26c9033778.tar.gz
patch 8.1.0909: MS-Windows: using ConPTY even though it is not stablev8.1.0909
Problem: MS-Windows: using ConPTY even though it is not stable. Solution: When ConPTY version is unstable, prefer using winpty. (Ken Takata, closes #3949)
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 2544f8567..3be269858 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -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;