--- lbbs/src/editor.c 2025/07/02 04:17:33 1.39 +++ lbbs/src/editor.c 2025/09/30 06:05:48 1.42 @@ -729,7 +729,9 @@ int editor_display(EDITOR_DATA *p_editor ch = igetch(100); // 0.1 second if (ch == KEY_NULL || ch == KEY_TIMEOUT) // Ignore received bytes if no futher input { +#ifdef _DEBUG log_error("Ignore %d bytes of incomplete UTF8 character\n", str_len); +#endif str_len = 0; break; } @@ -805,7 +807,7 @@ int editor_display(EDITOR_DATA *p_editor { col_pos = 1; } - if (ch != CR) + if (offset_out > 0) { col_pos += (str_len == 1 ? 1 : 2); } @@ -918,6 +920,7 @@ int editor_display(EDITOR_DATA *p_editor case KEY_TIMEOUT: goto cleanup; case Ctrl('W'): + case Ctrl('X'): loop = 0; break; case Ctrl('S'): // Start of line