From b6460a7aac5196b8cb6174bdaa8cc2ab82310380 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 3 Jan 2023 23:22:15 -0500 Subject: handle multiple definitions of a symbol with the same name in the definitions menu --- ted.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ted.h') diff --git a/ted.h b/ted.h index 6fb6754..98b78d6 100644 --- a/ted.h +++ b/ted.h @@ -300,6 +300,8 @@ typedef struct { // if not NULL, this will show on the right side of the entry. const char *detail; u32 color; + // use this for whatever you want + u64 userdata; } SelectorEntry; typedef struct { @@ -482,7 +484,7 @@ typedef struct { char *last_request_query; // last query string which we sent a request for Selector selector; // for "go to definition of..." menu - SymbolInfo *selector_all_definitions; // an array of all definitions + SymbolInfo *all_definitions; // an array of all definitions (gotten from workspace/symbols) for "go to definition" menu } Definitions; typedef struct { -- cgit v1.2.3