billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=4b24157e2bb7d02d7fab5f63904cafb25efa756f

commit 4b24157e2bb7d02d7fab5f63904cafb25efa756f
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Oct 10 23:37:51 2019 +0200

    typop: with many args, pop first then queue the others
---
 src/bin/typop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/typop.c b/src/bin/typop.c
index 13fe262..8a9e159 100644
--- a/src/bin/typop.c
+++ b/src/bin/typop.c
@@ -37,7 +37,8 @@ main(int argc, char **argv)
 
         path = argv[i];
         if (realpath(path, buf)) path = buf;
-        snprintf(tbuf, sizeof(tbuf), "%c}pn%s", 0x1b, path);
+        snprintf(tbuf, sizeof(tbuf), "%c}p%c%s", 0x1b,
+                 (i == 1) ? 'n': 'q', path);
         if (write(1, tbuf, strlen(tbuf) + 1) != (signed)(strlen(tbuf) + 1)) 
perror("write");
      }
    return 0;

-- 


Reply via email to