commit bash-20170630 snapshot

This commit is contained in:
Chet Ramey
2017-07-05 15:06:12 -04:00
parent 9952f68c08
commit 6364d76ebc
8 changed files with 1129 additions and 583 deletions
+2 -2
View File
@@ -909,9 +909,9 @@ operate_and_get_next (count, c)
rl_newline (1, c);
/* Find the current line, and find the next line to use. */
where = where_history ();
where = rl_explicit_arg ? count : where_history ();
if (HISTORY_FULL () || (where >= history_length - 1))
if (HISTORY_FULL () || (where >= history_length - 1) || rl_explicit_arg)
saved_history_line_to_use = where;
else
saved_history_line_to_use = where + 1;