mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-03 00:38:15 +02:00
commit bash-20190201 snapshot
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user