tui: Fix OBOE in linux cnorm capability fixup code.

This commit is contained in:
Jonathan de Boyne Pollard
2017-05-30 17:15:41 +01:00
parent 1aba6c607b
commit 63fd561815

View File

@@ -2566,7 +2566,7 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
unibi_set_str(ut, unibi_cursor_normal, fix_normal); unibi_set_str(ut, unibi_cursor_normal, fix_normal);
} }
if (linuxvt if (linuxvt
&& (strlen(fix_normal) + 1) >= (sizeof LINUXRESETC - 1) && strlen(fix_normal) >= (sizeof LINUXRESETC - 1)
&& !memcmp(strchr(fix_normal,0) - (sizeof LINUXRESETC - 1), LINUXRESETC, sizeof LINUXRESETC - 1)) { && !memcmp(strchr(fix_normal,0) - (sizeof LINUXRESETC - 1), LINUXRESETC, sizeof LINUXRESETC - 1)) {
// The Linux terminfo entry similarly includes a Linux-idiosyncractic // The Linux terminfo entry similarly includes a Linux-idiosyncractic
// cursor shape reset in cnorm, which similarly interferes with // cursor shape reset in cnorm, which similarly interferes with