From: Michael D. Lowis Date: Thu, 12 Jan 2017 14:52:12 +0000 (-0500) Subject: the > sigil should append the output to the tags buffer X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8f42aeaf94402a9b1c2fded50c4621930f1da099;p=projs%2Ftide.git the > sigil should append the output to the tags buffer --- diff --git a/xedit.c b/xedit.c index a794466..974e3f9 100644 --- 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 */