1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 10:46:45 +02:00

couple fixes

This commit is contained in:
Jfreegman
2013-12-14 15:38:21 -05:00
parent c371c37bce
commit 14c9599a30
5 changed files with 32 additions and 43 deletions

View File

@ -130,7 +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);
discard_buf(buf, pos, len);
return;
}