(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>
This commit is contained in:
Andrew Borodin 2022-10-30 09:51:14 +03:00
parent 328d27ccf1
commit 7031508550
2 changed files with 1 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;