mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Don't allow jumping to last line in history from first line
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@567 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f2e1be391c
commit
b26ea5d4e7
@ -93,9 +93,9 @@ const char *command_history_next(WINDOW_REC *window, const char *text)
|
||||
|
||||
pos = *phistpos;
|
||||
if (*phistpos == NULL)
|
||||
*phistpos = window_history ? window->cmdhist : cmdhist;
|
||||
else
|
||||
*phistpos = (*phistpos)->next;
|
||||
return "";
|
||||
|
||||
*phistpos = (*phistpos)->next;
|
||||
|
||||
if (*text != '\0' &&
|
||||
(pos == NULL || strcmp(pos->data, text) != 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user