Didn't see any response to this, so here's a suggested patch against history.3 from readline 6.3.006.
A bit ugly, but honestly could not come up with a cleaner way to express the behavior briefly. *** history.3 2015-03-29 08:42:35.260747012 -0600 --- NEW_history.3 2015-03-29 09:04:44.524794497 -0600 *************** *** 441,449 **** a \fBNULL\fP pointer. .Fn1 "HIST_ENTRY *" next_history "void" ! Move the current history offset forward to the next history entry, and ! return the a pointer to that entry. If there is no next entry, return ! a \fBNULL\fP pointer. .SS Searching the History List --- 441,450 ---- a \fBNULL\fP pointer. .Fn1 "HIST_ENTRY *" next_history "void" ! If the current history offset points to an extant history entry, then ! increment it, otherwise leave it as is. If the conditionally incremented ! history offset points to an extant history entry, return a pointer ! to that entry, otherwise return a \fBNULL\fP pointer. .SS Searching the History List _______________________________________________ Bug-readline mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-readline
