aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-01 03:08:34 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-01 03:31:19 +0300
commit5b54cd8f79fc877c0447f42bffcac40ec1f30beb (patch)
treefae00d9da734edc8eb5da41171f84280d658cbf6
parent903a87d4842479fb3ea5f1eef9f0a88abe775a78 (diff)
downloadsciteco-5b54cd8f79fc877c0447f42bffcac40ec1f30beb.tar.gz
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.
-rw-r--r--src/file-utils.c2
-rw-r--r--src/ring.c4
2 files changed, 5 insertions, 1 deletions
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.
*
* <file> may also be a glob pattern, in which case
* all regular files matching the pattern are opened/edited.