summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-23 18:57:41 -0500
committerpommicket <pommicket@gmail.com>2022-12-23 18:57:41 -0500
commiteb7519e92f768224803ab66985541c99bddc2bf0 (patch)
tree53a414205020cad9e8fcd2d8436e30cfae872a6e /ted.h
parent431a785f20127a7f1b6c1a6f1cd2a5031a7236ca (diff)
scroll through completions
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index ddd2695..4c7da63 100644
--- a/ted.h
+++ b/ted.h
@@ -390,6 +390,8 @@ typedef struct {
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.
i32 cursor; // which completion is currently selected (index into suggested)
+ i32 scroll;
+
Rect rect; // rectangle where the autocomplete menu is (needed to avoid interpreting autocomplete clicks as other clicks)
} Autocomplete;