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 +- src/ring.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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); } /* diff --git a/src/ring.c b/src/ring.c index 2c235af..0f1d67f 100644 --- a/src/ring.c +++ b/src/ring.c @@ -480,6 +480,10 @@ teco_state_edit_file_done(teco_machine_main_t *ctx, const teco_string_t *str, GE * area. * Naturally this only has any effect in interactive * mode. + * Note that you can also click on these entries \(em + * if mouse support is enabled \(em to immediately switch + * to any file in the buffer ring just like with any + * other popup. * * may also be a glob pattern, in which case * all regular files matching the pattern are opened/edited. -- cgit v1.2.3