From 1bb6540b6437b96e6ff8de3f842cd10627e809a9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Aug 2018 11:08:12 +0530 Subject: [PATCH] Better debug output for pre-edit text --- kitty/keys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kitty/keys.c b/kitty/keys.c index 9b494213c..e1aeeeff3 100644 --- a/kitty/keys.c +++ b/kitty/keys.c @@ -137,13 +137,13 @@ on_key_input(int key, int scancode, int action, int mods, const char* text, int case 1: // update pre-edit text update_ime_position(global_state.callback_os_window, w, screen); screen_draw_overlay_text(screen, text); - debug("updated pre-edit text\n"); + debug("updated pre-edit text: '%s'\n", text); return; case 2: // commit text if (text && *text) { schedule_write_to_child(w->id, text, strlen(text)); - } - debug("committed pre-edit text\n"); + debug("committed pre-edit text: %s\n", text); + } else debug("committed pre-edit text: (null)\n"); return; case 0: break;