]> git.mdlowis.com Git - projs/tide.git/commitdiff
sigil prefixed commands should be interpreted rather than sent when in pty mode
authorMichael D. Lowis <mike.lowis@gentex.com>
Fri, 28 Jul 2017 20:30:20 +0000 (16:30 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Fri, 28 Jul 2017 20:30:20 +0000 (16:30 -0400)
tide.c

diff --git a/tide.c b/tide.c
index 3eaf8044c3e743513fdc00d0baf1732407e0bdc2..db183730088313979823fd2bbabac3d600b4ed9a 100644 (file)
--- a/tide.c
+++ b/tide.c
@@ -105,7 +105,7 @@ static void exec(char* cmd) {
     if (tag) {
         while (*cmd && !isspace(*cmd++));
         tag_exec(tag, (*cmd ? stringdup(cmd) : NULL));
-    } else if (pty_active()) {
+    } else if (pty_active() && !rissigil(*cmd)) {
         pty_send(cmd, NULL);
     } else {
         cmd_exec(cmd);