]> git.mdlowis.com Git - projs/tide.git/commitdiff
> dumps output to the tags buffer so the output should be chomped to ensure we dont...
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 12 Jan 2017 15:39:43 +0000 (10:39 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 12 Jan 2017 15:39:43 +0000 (10:39 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index 974e3f99a2688e1a6be63aeb8abc701a1d9659f4..7e2e79483858b355669c0cc2d182ec28035381b6 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -730,7 +730,10 @@ static void cmd_exec(char* cmd) {
         view_append(getview(TAGS), chomp(error));
     
     if (output) {
-        (op == '>' ? view_append : view_putstr)(getview(dest), output);
+        if (op == '>')
+            view_append(getview(dest), chomp(output));
+        else
+            view_putstr(getview(dest), output);
         Focused = dest;
     }
     /* cleanup */