summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-23 14:48:32 -0500
committerpommicket <pommicket@gmail.com>2022-12-23 14:48:32 -0500
commitdbab768e4d0be378e65399f32f26edb4756533ce (patch)
tree7cd92c46903df99c1c3ad084d2eab0013f67c4ab /ted.h
parent002215c37f6a1ced083c78b7c9b6f86f472b23cd (diff)
completion context + don't flash cursor if trigger character
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index f7d79ae..cbcc466 100644
--- a/ted.h
+++ b/ted.h
@@ -379,6 +379,9 @@ typedef struct {
bool open; // is the autocomplete window open?
bool waiting_for_lsp;
+ // which trigger character invoked this (0 if autocomplete was manually invoked)
+ char32_t trigger_char;
+
Autocompletion *completions; // dynamic array of all completions
u32 *suggested; // dynamic array of completions to be suggested (indices into completions)
BufferPos last_pos; // position of cursor last time completions were generated. if this changes, we need to recompute completions.