summaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-18 13:50:02 -0700
committercflip <cflip@cflip.net>2023-01-18 15:45:25 -0700
commit8d4c8b32faadd97631904e411ff39cb8282030f5 (patch)
tree694416b94bf330d2490daaa0c26da1fbb6bcffb0 /editor.h
parent4b1811912d45bdefadc933ff2b8fc3f63471a192 (diff)
Refactor text rendering code
Previously, the editor would print visible lines plus the statusline and message bar into a buffer, then the window would display this entire buffer. This refactor makes the window directly read lines from the editor and individually display them on the screen. This will make it easier to do syntax highlighting, since that information is stored per line. The statusline and message line are still printed into a buffer to be displayed by the window, but they are now positioned from the bottom of the screen.
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/editor.h b/editor.h
index aaed086..e8e4976 100644
--- a/editor.h
+++ b/editor.h
@@ -55,9 +55,8 @@ void editor_add_line_below(struct editor_state* editor);
void editor_find(struct editor_state* editor);
void editor_scroll(struct editor_state* editor);
void editor_update_screen_size(struct editor_state *);
-void editor_draw_rows(struct editor_state* editor, struct append_buffer* buffer);
-void editor_draw_status_bar(struct editor_state* editor, struct append_buffer* buffer);
-void editor_draw_message_bar(struct editor_state* editor, struct append_buffer* buffer);
+void editor_draw_status_bar(struct editor_state *editor, struct append_buffer *buffer);
+void editor_draw_message_bar(struct editor_state *editor, struct append_buffer *buffer);
void editor_destroy(struct editor_state *editor);