Mercurial > vim
diff src/terminal.c @ 15804:864ec0dd71b9 v8.1.0909
patch 8.1.0909: MS-Windows: using ConPTY even though it is not stable
commit https://github.com/vim/vim/commit/d9ef1b8d77f304c83241f807c17ffa26c9033778
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 13 19:23:10 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 Feb 2019 19:30:09 +0100 |
parents | ec39beb7e61f |
children | 5523665fdf80 |
line wrap: on
line diff
--- 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;