diff options
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 014eb676a0..959b4c41a5 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -314,7 +314,7 @@ static char *(p_scl_values[]) = { "yes", "no", "auto", "auto:1", "auto:2", "yes:1", "yes:2", "yes:3", "yes:4", "yes:5", "yes:6", "yes:7", "yes:8", "yes:9", NULL }; #ifdef WIN32 -static char *(p_twt_values[]) = { "conpty", "winpty", "", NULL }; +static char *(p_tmt_values[]) = { "conpty", "winpty", "", NULL }; #endif /// All possible flags for 'shm'. @@ -3289,8 +3289,8 @@ ambw_end: errmsg = e_invarg; } #ifdef WIN32 - } else if (varp == &p_twt) { - if (check_opt_strings(*varp, p_twt_values, false) != OK + } else if (varp == &p_tmt) { + if (check_opt_strings(*varp, p_tmt_values, false) != OK || (!os_has_conpty_working() && STRCMP(*varp, "conpty") == 0)) { errmsg = e_invarg; } |