fix for adding here-documents to history; change to checking for custom LS_COLORS prefix

This commit is contained in:
Chet Ramey
2021-12-09 15:31:21 -05:00
parent 71a11dbeb4
commit e93bed95a8
5 changed files with 24 additions and 33 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ _rl_custom_readline_prefix (void)
len = strlen (RL_COLOR_PREFIX_EXTENSION);
for (ext = _rl_color_ext_list; ext; ext = ext->next)
if (ext->ext.len == len && STREQ (ext->ext.string, RL_COLOR_PREFIX_EXTENSION))
if (ext->ext.len == len && STREQN (ext->ext.string, RL_COLOR_PREFIX_EXTENSION, len))
return (&ext->seq);
return (NULL);
}