From f90d5e1f07fdc9dea7c24b11107049b613a5be7a Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Sun, 29 Jan 2023 22:22:54 +0100 Subject: More tests and documentation Also improve find file and switch buffer a bit. Implement word backward/forward. --- src/window.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/window.h') diff --git a/src/window.h b/src/window.h index 81535a0..14e041e 100644 --- a/src/window.h +++ b/src/window.h @@ -8,8 +8,11 @@ struct window { uint32_t width; uint32_t height; struct buffer *buffer; + struct buffer *prev_buffer; }; void window_update_buffer(struct window *window, struct command_list *commands, uint64_t frame_time, uint32_t *relline, uint32_t *relcol); + +void window_set_buffer(struct window *window, struct buffer *buffer); -- cgit v1.2.3