aboutsummaryrefslogtreecommitdiff
path: root/state.h
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-28 01:40:34 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-28 01:40:34 -0400
commit2b4305b89e0aee24e0f6d5470e4be9abb4854943 (patch)
tree5bb9ce45cebad2110a9afbf60395f9df9c53a2d6 /state.h
parente42d9bb1834678fb0275dbcdfc84bc80b1ca27a8 (diff)
non fancy scroll
Diffstat (limited to 'state.h')
-rw-r--r--state.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/state.h b/state.h
index ebbc962..695ad2f 100644
--- a/state.h
+++ b/state.h
@@ -132,7 +132,14 @@ typedef struct {
int selected_filtered_item;
char* input_buffer;
size_t cursor_index;
- float fancy_scroll;
+
+ // scrolling
+ float scroll_offset;
+ size_t displayed_item_start;
+ size_t displayed_item_end;
+ // page scroll
+ size_t* page_indices; // page indices into filtered items
+ size_t current_page;
} client_state;