diff options
Diffstat (limited to 'lib/readline/history.c')
-rw-r--r-- | lib/readline/history.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/readline/history.c b/lib/readline/history.c index a3c26c6e..2daa362d 100644 --- a/lib/readline/history.c +++ b/lib/readline/history.c @@ -165,6 +165,13 @@ history_set_pos (int pos) history_offset = pos; return (1); } + +/* Are we currently at the end of the history list? */ +int +_hs_at_end_of_history (void) +{ + return (the_history == 0 || history_offset == history_length); +} /* Return the current history array. The caller has to be careful, since this is the actual array of data, and could be bashed or made corrupt easily. |