mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 00:52:30 +02:00
Merge pull request #685 from josephbisch/fix-462
Fix strange history behavior when history is empty
This commit is contained in:
commit
3f69e71804
1 changed files with 2 additions and 0 deletions
|
|
@ -116,6 +116,8 @@ const char *command_history_prev(WINDOW_REC *window, const char *text)
|
||||||
history->pos = history->pos->prev;
|
history->pos = history->pos->prev;
|
||||||
if (history->pos == NULL)
|
if (history->pos == NULL)
|
||||||
history->over_counter++;
|
history->over_counter++;
|
||||||
|
} else if (history->lines == 0) {
|
||||||
|
history->over_counter++;
|
||||||
} else {
|
} else {
|
||||||
history->pos = g_list_last(history->list);
|
history->pos = g_list_last(history->list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue