]> git.mdlowis.com Git - projs/tide.git/commitdiff
the > sigil should append the output to the tags buffer
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 12 Jan 2017 14:52:12 +0000 (09:52 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 12 Jan 2017 14:52:12 +0000 (09:52 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index a7944664ded44ec471d0274a80402c470c427a1d..974e3f99a2688e1a6be63aeb8abc701a1d9659f4 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -725,10 +725,12 @@ static void cmd_exec(char* cmd) {
         if (op != '<') dest = Focused;
         output = cmdread(ShellCmd, &error);
     }
+    
     if (error)
         view_append(getview(TAGS), chomp(error));
+    
     if (output) {
-        view_putstr(getview(dest), output);
+        (op == '>' ? view_append : view_putstr)(getview(dest), output);
         Focused = dest;
     }
     /* cleanup */