summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index 378d5c7..57325b8 100644
--- a/buffer.c
+++ b/buffer.c
@@ -863,6 +863,10 @@ void buffer_scroll_to_pos(TextBuffer *buffer, BufferPos pos) {
buffer_correct_scroll(buffer); // it's possible that min/max_scroll_x/y go too far
}
+// scroll in such a way that this position is in the center of the screen
+void buffer_scroll_center_pos(TextBuffer *buffer) {
+}
+
// if the cursor is offscreen, this will scroll to make it onscreen.
void buffer_scroll_to_cursor(TextBuffer *buffer) {
buffer_scroll_to_pos(buffer, buffer->cursor_pos);