aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2016-01-30 22:51:24 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-09-09 19:58:36 +0200
commitf403a29fdb1402f45790bb67a42a6d846f33984e (patch)
tree99c546cf22cd16e21c05fab2cb80433aa57eac6f
parenttyls: don't call strlen() (diff)
downloadterminology-f403a29fdb1402f45790bb67a42a6d846f33984e.tar.gz
termptyesc: fix logic of ty escapes handling
-rw-r--r--src/bin/termptyesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 1b6fc75..05e28d4 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1506,7 +1506,7 @@ _handle_esc_terminology(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *
// commands are stored in the buffer, 0 bytes not allowed (end marker)
cmd = eina_unicode_unicode_to_utf8(buf, NULL);
ty->cur_cmd = cmd;
- if ((!config->ty_escapes) || (!_termpty_ext_handle(ty, cmd, buf)))
+ if ((config->ty_escapes) && (!_termpty_ext_handle(ty, cmd, buf)))
{
if (ty->cb.command.func) ty->cb.command.func(ty->cb.command.data);
}