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

implement chat logging

This commit is contained in:
Jfreegman
2014-02-26 01:51:06 -05:00
parent b6613a015f
commit 831d8e5f24
5 changed files with 159 additions and 3 deletions

View File

@ -146,12 +146,12 @@ void fetch_hist_item(wchar_t *buf, size_t *pos, size_t *len, wchar_t (*hst)[MAX_
{
if (key_dir == LN_HIST_MV_UP) {
if (--(*hst_pos) < 0) {
(*hst_pos) = 0;
*hst_pos = 0;
beep();
}
} else {
if (++(*hst_pos) >= hst_tot) {
(*hst_pos) = hst_tot;
*hst_pos = hst_tot;
reset_buf(buf, pos, len);
return;
}