2018-06-13 13:41:42 +02:00
|
|
|
Special for screen and its new TERM setting like TERM=screen.xterm-256color
|
|
|
|
|
|
|
|
---
|
2018-09-28 14:35:29 +02:00
|
|
|
readline-7.0/bind.c | 9 +++++++++
|
|
|
|
1 file changed, 9 insertions(+)
|
2018-06-13 13:41:42 +02:00
|
|
|
|
|
|
|
--- lib/readline/bind.c
|
2018-09-28 14:35:29 +02:00
|
|
|
+++ readline-7.0/bind.c 2018-09-28 11:22:31.001503017 +0000
|
|
|
|
@@ -1127,6 +1127,15 @@ parser_if (args)
|
2018-06-13 13:41:42 +02:00
|
|
|
`$if term=sun-cmd' into their .inputrc. */
|
|
|
|
_rl_parsing_conditionalized_out = _rl_stricmp (args + 5, tname) &&
|
|
|
|
_rl_stricmp (args + 5, rl_terminal_name);
|
|
|
|
+
|
2018-09-28 14:35:29 +02:00
|
|
|
+ /* Skip the prefix `screen.' if any to use the underlying bindings */
|
|
|
|
+ if (_rl_parsing_conditionalized_out &&
|
|
|
|
+ _rl_strnicmp (rl_terminal_name, "screen.", 7) == 0)
|
2018-06-13 13:41:42 +02:00
|
|
|
+ {
|
2018-09-28 14:35:29 +02:00
|
|
|
+ _rl_parsing_conditionalized_out = _rl_stricmp (args + 5, tname + 7) &&
|
|
|
|
+ _rl_stricmp (args + 5, rl_terminal_name + 7);
|
2018-06-13 13:41:42 +02:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
xfree (tname);
|
|
|
|
}
|
|
|
|
#if defined (VI_MODE)
|