From dbab768e4d0be378e65399f32f26edb4756533ce Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 23 Dec 2022 14:48:32 -0500 Subject: completion context + don't flash cursor if trigger character --- ted.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ted.h') 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. -- cgit v1.2.3