netstar pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=2a9d02fc2f58db3df7b693e3dc5014f1ed10d2c2

commit 2a9d02fc2f58db3df7b693e3dc5014f1ed10d2c2
Author: Al Poole <nets...@gmail.com>
Date:   Sun Oct 8 14:44:34 2017 +0100

    libedi_scm: make sure we always change to valid directory.
---
 src/lib/edi_scm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/edi_scm.c b/src/lib/edi_scm.c
index 3f5604b..592571a 100644
--- a/src/lib/edi_scm.c
+++ b/src/lib/edi_scm.c
@@ -27,7 +27,7 @@ _edi_scm_exec(const char *command)
 
    oldpwd = getcwd(NULL, PATH_MAX);
 
-   chdir(edi_project_get());
+   chdir(self->workdir);
    code = edi_exe_wait(command);
    chdir(oldpwd);
 
@@ -46,7 +46,7 @@ _edi_scm_exec_response(const char *command)
 
    oldpwd = getcwd(NULL, PATH_MAX);
 
-   chdir(edi_project_get());
+   chdir(self->workdir);
    response = edi_exe_response(command);
    chdir(oldpwd);
 

-- 


Reply via email to