1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-23 05:55:04 -05:00

Remove recently-added debug() calls from terminal.c

This commit is contained in:
Ben Harris 2025-04-05 21:22:43 +01:00
parent 4f4f752e47
commit fee594798f

View File

@ -6122,7 +6122,6 @@ static void do_paint(Terminal *term)
/* Work out if and where to display pre-edit text. */ /* Work out if and where to display pre-edit text. */
if (i == our_curs_y && term->preedit_termline != NULL) { if (i == our_curs_y && term->preedit_termline != NULL) {
debug("preedit_width = %d\n", term->preedit_termline->cols);
preedit_start = our_curs_x; preedit_start = our_curs_x;
preedit_end = preedit_start + term->preedit_termline->cols; preedit_end = preedit_start + term->preedit_termline->cols;
if (preedit_end > term->cols) { if (preedit_end > term->cols) {
@ -8148,12 +8147,10 @@ void term_set_preedit_text(Terminal *term, char *preedit_text)
BinarySource src[1]; BinarySource src[1];
int width = 0, i; int width = 0, i;
debug("Pre-edit:");
term->preedit_termline = newtermline(term, 0, false); term->preedit_termline = newtermline(term, 0, false);
BinarySource_BARE_INIT(src, preedit_text, strlen(preedit_text)); BinarySource_BARE_INIT(src, preedit_text, strlen(preedit_text));
while (get_avail(src)) { while (get_avail(src)) {
unsigned int c = decode_utf8(src, NULL); unsigned int c = decode_utf8(src, NULL);
debug(" U+%04X", c);
switch (term_char_width(term, c)) { switch (term_char_width(term, c)) {
case -1: case -1:
/* Ignore control characters. */ /* Ignore control characters. */
@ -8181,9 +8178,6 @@ void term_set_preedit_text(Terminal *term, char *preedit_text)
break; break;
} }
} }
debug("\n");
} else {
debug("Pre-edit finished\n");
} }
seen_disp_event(term); seen_disp_event(term);
} }