mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 13:26:44 +02:00
fix a couple bugs
This commit is contained in:
@ -130,9 +130,8 @@ void fetch_hist_item(wchar_t *buf, size_t *pos, size_t *len, wchar_t (*hst)[MAX_
|
||||
beep();
|
||||
}
|
||||
} else {
|
||||
if (++(*hst_pos) > hst_tot) {
|
||||
if (++(*hst_pos) >= hst_tot) {
|
||||
--(*hst_pos);
|
||||
beep();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user