Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b51e5d8

Browse filesBrowse files
Boskovitsjustinmk
authored andcommitted
tui_tk_ti_getstr: handle weird value #9688
tigetstr (used by libtermkey/driver-ti.c) may return -1 as a pointer. Documented in man 3 tigetstr. https://linux.die.net/man/3/tigetstr > The tigetstr routine returns the value (char *)-1 if capname is not a string > capability, or 0 if it is canceled or absent from the terminal description. Fixed #9687
1 parent 980dd7c commit b51e5d8
Copy full SHA for b51e5d8

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/nvim/tui/tui.c

Copy file name to clipboardExpand all lines: src/nvim/tui/tui.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ static const char *tui_tk_ti_getstr(const char *name, const char *value,
20002000
} else if (strequal(name, "key_dc")) {
20012001
DLOG("libtermkey:kdch1=%s", value);
20022002
// Vim: "If <BS> and <DEL> are now the same, redefine <DEL>."
2003-
if (value != NULL && strequal(stty_erase, value)) {
2003+
if (value != NULL && value != (char *)-1 && strequal(stty_erase, value)) {
20042004
return stty_erase[0] == DEL ? CTRL_H_STR : DEL_STR;
20052005
}
20062006
} else if (strequal(name, "key_mouse")) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.