This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit 58b0eb86acd84a443c11d72afd044d7b81c6868c
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Sat Apr 4 13:42:58 2026 +0100

    fix 2 file mode for typebuf cp/mv to work
---
 src/backends/default/typebuf.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/backends/default/typebuf.c b/src/backends/default/typebuf.c
index b53e931..c29f59f 100644
--- a/src/backends/default/typebuf.c
+++ b/src/backends/default/typebuf.c
@@ -270,13 +270,14 @@ _bi_mv_run(char **args)
       if (files) op_run("mv", files, full);
       EINA_LIST_FREE(files, s) free(s);
     }
-  else
+  else if (i == 3) // 2 args
     { // rename a file
       status_begin();
       status_op("mv");
-      s = _path_arg_rel_to_abs(args[i]);
+      s = _path_arg_rel_to_abs(args[1]);
       if (s)
         {
+          fprintf(stderr, "MV [%s] -> [%s]\n", s, full);
           fs_mv(s, full, EINA_TRUE);
           free(s);
         }
@@ -320,13 +321,14 @@ _bi_cp_run(char **args)
       if (files) op_run("cp", files, full);
       EINA_LIST_FREE(files, s) free(s);
     }
-  else
+  else if (i == 3) // 2 args
     { // copy a file to another (new or on top)
       status_begin();
       status_op("cp");
-      s = _path_arg_rel_to_abs(args[i]);
+      s = _path_arg_rel_to_abs(args[1]);
       if (s)
         {
+          fprintf(stderr, "CP [%s] -> [%s]\n", s, full);
           fs_cp(s, full, EINA_TRUE);
           free(s);
         }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to