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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user