From 7031508550e589ed37a7989986cc09647c58af76 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 30 Oct 2022 09:51:14 +0300 Subject: [PATCH] (command_completion_function): don't call canonicalize_pathname() ...because mc_build_filename() makes that. (etags_set_definition_hash): likewise. Signed-off-by: Andrew Borodin --- lib/widget/input_complete.c | 1 - src/editor/etags.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/widget/input_complete.c b/lib/widget/input_complete.c index c7fa555b7..5b6c41b99 100644 --- a/lib/widget/input_complete.c +++ b/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; } diff --git a/src/editor/etags.c b/src/editor/etags.c index d87fcc087..9b81bbfe6 100644 --- a/src/editor/etags.c +++ b/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;