[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Minor bone to pick regarding the doc for next_history
From: |
Glenn Golden |
Subject: |
Re: [Bug-readline] Minor bone to pick regarding the doc for next_history() |
Date: |
Sun, 29 Mar 2015 09:09:21 -0600 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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