commit bash-20190201 snapshot

This commit is contained in:
Chet Ramey
2019-02-04 08:55:56 -05:00
parent 8a9718cfc9
commit 38f8cb6930
4 changed files with 25 additions and 4 deletions
+2 -2
View File
@@ -64,10 +64,10 @@ INTERNAL_GLOB_PATTERN_P (pattern)
{
p++;
bsquote = 1;
continue;
}
else if (*p == L('\0'))
else /* (*p == L('\0')) */
return 0;
continue;
}
return bsquote ? 2 : 0;
+7 -1
View File
@@ -458,6 +458,7 @@ readline_internal_teardown (int eof)
{
char *temp;
HIST_ENTRY *entry;
int pos;
RL_CHECK_SIGNALS ();
@@ -477,7 +478,12 @@ readline_internal_teardown (int eof)
}
if (_rl_revert_all_at_newline)
_rl_revert_all_lines ();
{
pos = where_history ();
using_history ();
_rl_revert_all_lines ();
history_set_pos (pos);
}
/* At any rate, it is highly likely that this line has an undo list. Get
rid of it now. */