mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05: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;
|
pos = *phistpos;
|
||||||
if (*phistpos == NULL)
|
if (*phistpos == NULL)
|
||||||
*phistpos = window_history ? window->cmdhist : cmdhist;
|
return "";
|
||||||
else
|
|
||||||
*phistpos = (*phistpos)->next;
|
*phistpos = (*phistpos)->next;
|
||||||
|
|
||||||
if (*text != '\0' &&
|
if (*text != '\0' &&
|
||||||
(pos == NULL || strcmp(pos->data, text) != 0)) {
|
(pos == NULL || strcmp(pos->data, text) != 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user