Browse Source

(command_completion_function): don't call canonicalize_pathname()

...because mc_build_filename() makes that.

(etags_set_definition_hash): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 2 years ago
parent
commit
7031508550
2 changed files with 1 additions and 3 deletions
  1. 0 1
      lib/widget/input_complete.c
  2. 1 2
      src/editor/etags.c

+ 0 - 1
lib/widget/input_complete.c

@@ -665,7 +665,6 @@ command_completion_function (const char *text, int state, input_complete_t flags
                 expanded = tilde_expand (*cur_path != '\0' ? cur_path : ".");
                 cur_word = mc_build_filename (expanded, u_text, (char *) NULL);
                 g_free (expanded);
-                canonicalize_pathname (cur_word);
                 cur_path = strchr (cur_path, '\0') + 1;
                 init_state = state;
             }

+ 1 - 2
src/editor/etags.c

@@ -41,7 +41,7 @@
 #include "lib/fileloc.h"        /* TAGS_NAME */
 #include "lib/tty/tty.h"        /* LINES, COLS */
 #include "lib/strutil.h"
-#include "lib/util.h"           /* canonicalize_pathname() */
+#include "lib/util.h"
 
 #include "editwidget.h"
 
@@ -253,7 +253,6 @@ etags_set_definition_hash (const char *tagfile, const char *start_path, const ch
                     def_hash = g_new (etags_hash_t, 1);
 
                     def_hash->fullpath = mc_build_filename (start_path, filename, (char *) NULL);
-                    canonicalize_pathname (def_hash->fullpath);
                     def_hash->filename = g_strdup (filename);
 
                     def_hash->line = 0;