mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 04:32:15 -05:00
Fixes #928 again. In scrollback replay, skip every line that starts 0x0d.
This commit is contained in:
parent
2a2eafcf1d
commit
b66edd372e
@ -298,6 +298,10 @@ scrollback_load (session *sess)
|
|||||||
{
|
{
|
||||||
char *buf_tmp;
|
char *buf_tmp;
|
||||||
|
|
||||||
|
/* If nothing but funny trailing matter e.g. 0x0d or 0x0d0a, toss it */
|
||||||
|
if (n_bytes >= 1 && buf[0] == 0x0d)
|
||||||
|
continue;
|
||||||
|
|
||||||
n_bytes--;
|
n_bytes--;
|
||||||
buf_tmp = buf;
|
buf_tmp = buf;
|
||||||
buf = g_strndup (buf_tmp, n_bytes);
|
buf = g_strndup (buf_tmp, n_bytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user