]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed a bug where opening a new file caused the original process to hang
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 30 Nov 2016 16:55:50 +0000 (11:55 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 30 Nov 2016 16:55:50 +0000 (11:55 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index 3db2bdfb359fbae6f608dd3c2663f5bcfafd2fa9..357f2497bba56e1ca6a851f8cb29edda1b21b834 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -486,7 +486,7 @@ static void open_file(void) {
             buf_load(getbuf(EDIT), file);
         } else {
             OpenCmd[1] = file;
-            free(cmdread(OpenCmd, NULL));
+            cmdrun(OpenCmd, NULL);
         }
     }
     free(file);