summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 12:47:59 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 12:47:59 -0500
commit4736d2d6c02b2715bba58484eacce51495df2f4c (patch)
tree5ab45e40facbd507ad9cb5d638d522229ae7ac8b /ted.h
parent3756a3e47221c3b0133724a482341a9010076a9e (diff)
fix mouse clicks in the "go to definition" menu
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 98b78d6..57eeb2c 100644
--- a/ted.h
+++ b/ted.h
@@ -1130,7 +1130,8 @@ void selector_up(Ted *ted, Selector *s, i64 n);
void selector_down(Ted *ted, Selector *s, i64 n);
// sort entries alphabetically
void selector_sort_entries_by_name(Selector *s);
-// returns a null-terminated UTF-8 string of the option selected, or NULL if none was.
+// returns a null-terminated UTF-8 string of the entry selected, or NULL if none was.
+// also, sel->cursor will be set to the index of the entry, even if the mouse was used.
// you should call free() on the return value.
char *selector_update(Ted *ted, Selector *s);
// NOTE: also renders the line buffer