--- lbbs/src/str_process.c 2025/06/02 15:01:55 1.11 +++ lbbs/src/str_process.c 2025/06/11 04:27:48 1.12 @@ -36,13 +36,6 @@ int split_line(const char *buffer, int m continue; } - if (c == '\n') - { - i++; - *p_eol = 1; - break; - } - if (c == '\033' && buffer[i + 1] == '[') // Skip control sequence { i += 2; @@ -69,6 +62,14 @@ int split_line(const char *buffer, int m break; } (*p_display_len)++; + + // \n is regarded as 1 character wide in terminal editor, which is different from Web version + if (c == '\n') + { + i++; + *p_eol = 1; + break; + } } }