From 5b54cd8f79fc877c0447f42bffcac40ec1f30beb Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 1 Mar 2025 03:08:34 +0300 Subject: fixed clicking the file completion popup in ~/ * Popup entries are added with expanded directory names, so we have to skip the expanded directory names from the clicked popup entries. --- src/file-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/file-utils.c') diff --git a/src/file-utils.c b/src/file-utils.c index 02816b4..75bcb48 100644 --- a/src/file-utils.c +++ b/src/file-utils.c @@ -483,7 +483,7 @@ teco_file_auto_complete(const gchar *filename, GFileTest file_test, teco_string_ strlen((gchar *)file->data), is_buffer); } - teco_interface_popup_show(filename ? strlen(filename) : 0); + teco_interface_popup_show(filename_len); } /* -- cgit v1.2.3