Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
15803:ed9724cb549d | 15804:864ec0dd71b9 |
---|---|
5519 }; | 5519 }; |
5520 | 5520 |
5521 if (handled) | 5521 if (handled) |
5522 return result; | 5522 return result; |
5523 | 5523 |
5524 if (!has_vtp_working()) | 5524 if (!has_conpty_working()) |
5525 { | 5525 { |
5526 handled = TRUE; | 5526 handled = TRUE; |
5527 result = FAIL; | 5527 result = FAIL; |
5528 return FAIL; | 5528 return FAIL; |
5529 } | 5529 } |
6137 if (opt->jo_tty_type != NUL) | 6137 if (opt->jo_tty_type != NUL) |
6138 tty_type = opt->jo_tty_type; | 6138 tty_type = opt->jo_tty_type; |
6139 | 6139 |
6140 if (tty_type == NUL) | 6140 if (tty_type == NUL) |
6141 { | 6141 { |
6142 if (has_conpty) | 6142 if (has_conpty && (is_conpty_stable() || !has_winpty)) |
6143 use_conpty = TRUE; | 6143 use_conpty = TRUE; |
6144 else if (has_winpty) | 6144 else if (has_winpty) |
6145 use_winpty = TRUE; | 6145 use_winpty = TRUE; |
6146 // else: error | 6146 // else: error |
6147 } | 6147 } |