readline/readline-7.0-screen.patch

26 lines
730 B
Diff

Special for screen and its new TERM setting like TERM=screen.xterm-256color
---
lib/readline/bind.c | 10 ++++++++++
1 file changed, 10 insertions(+)
--- lib/readline/bind.c
+++ lib/readline/bind.c 2018-06-13 11:30:47.908033945 +0000
@@ -1127,6 +1127,16 @@ parser_if (args)
`$if term=sun-cmd' into their .inputrc. */
_rl_parsing_conditionalized_out = _rl_stricmp (args + 5, tname) &&
_rl_stricmp (args + 5, rl_terminal_name);
+
+ if (!_rl_parsing_conditionalized_out && _rl_strnicmp (args + 5, "screen", 6))
+ {
+ tem = strchr (tname, '.');
+ if (tem)
+ *tem = '\0';
+
+ _rl_parsing_conditionalized_out = _rl_stricmp (args + 5, tname);
+ }
+
xfree (tname);
}
#if defined (VI_MODE)