about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-01 01:24:48 +0000
committerJames Booth <boothj5@gmail.com>2012-11-01 01:24:48 +0000
commit12aa2b640acee1a6e40514d102a25f084597f595 (patch)
tree0586028242924580aa470583f38f4290d1746b5d
parente45e6c46b79a3cf8468a5bd26ab9b8eaeb8afe8d (diff)
downloadprofani-tty-12aa2b640acee1a6e40514d102a25f084597f595.tar.gz
Do not send <composing/> for unprintable characters
-rw-r--r--src/input_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_win.c b/src/input_win.c
index 27f42d22..c5de7538 100644
--- a/src/input_win.c
+++ b/src/input_win.c
@@ -168,7 +168,8 @@ inp_get_char(int *ch, char *input, int *size)
         }
 
         // if got char and in chat window, chat session active
-        if (prefs_get_outtype() && (*ch != ERR) && win_in_chat() && !in_command) {
+        if (prefs_get_outtype() && (*ch != ERR) && win_in_chat() && !in_command &&
+                _printable(*ch)) {
             char *recipient = win_get_recipient();
             chat_session_set_composing(recipient);
             if (!chat_session_get_sent(recipient) ||