mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
Change option name from termwintype to termtype
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -654,7 +654,7 @@ EXTERN char_u *p_titleold; ///< 'titleold'
|
||||
EXTERN char_u *p_titlestring; ///< 'titlestring'
|
||||
EXTERN char_u *p_tsr; ///< 'thesaurus'
|
||||
EXTERN int p_tgc; ///< 'termguicolors'
|
||||
EXTERN char_u *p_twt; ///< 'termwintype'
|
||||
EXTERN char_u *p_tmt; ///< 'termtype'
|
||||
EXTERN int p_ttimeout; ///< 'ttimeout'
|
||||
EXTERN long p_ttm; ///< 'ttimeoutlen'
|
||||
EXTERN char_u *p_udir; ///< 'undodir'
|
||||
|
@@ -2497,10 +2497,10 @@ return {
|
||||
defaults={if_true={vi=false}}
|
||||
},
|
||||
{
|
||||
full_name='termwintype', abbreviation='twt',
|
||||
full_name='termtype', abbreviation='tmt',
|
||||
type='string', scope={'global'},
|
||||
vi_def=false,
|
||||
varname='p_twt',
|
||||
varname='p_tmt',
|
||||
defaults={if_true={vi="",vim=""}}
|
||||
},
|
||||
{
|
||||
|
@@ -56,8 +56,8 @@ int pty_process_spawn(PtyProcess *ptyproc)
|
||||
|
||||
assert(proc->err.closed);
|
||||
|
||||
int pty_type = *p_twt;
|
||||
if (pty_type == 'c' && os_has_conpty_working()) {
|
||||
int pty_type = *p_tmt;
|
||||
if (pty_type != 'w' && os_has_conpty_working()) {
|
||||
if ((conpty_object =
|
||||
os_conpty_init(&in_name, &out_name,
|
||||
ptyproc->width, ptyproc->height)) != NULL) {
|
||||
|
Reference in New Issue
Block a user