termptyesc: fix logic of ty escapes handling

This commit is contained in:
Jean Guyomarc'h 2016-01-30 22:51:24 +01:00 committed by Jean Guyomarc'h
parent e13f5f19e4
commit f403a29fdb
1 changed files with 1 additions and 1 deletions

View File

@ -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) // commands are stored in the buffer, 0 bytes not allowed (end marker)
cmd = eina_unicode_unicode_to_utf8(buf, NULL); cmd = eina_unicode_unicode_to_utf8(buf, NULL);
ty->cur_cmd = cmd; 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); if (ty->cb.command.func) ty->cb.command.func(ty->cb.command.data);
} }