1
0
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:
Jfreegman
2013-12-18 20:18:02 -05:00
parent d04f5fa102
commit feefecb2ac
4 changed files with 5 additions and 5 deletions

View File

@ -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;
}
}