summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-23 11:32:52 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-23 11:32:52 -0500
commitf4172376d933c5c9033ff421f04db828825f9017 (patch)
tree8d53b18edb7aec7896ca48e5ab06c4448eec53e5 /buffer.c
parent376d732e48b89b0a0a392e2582826775e2d4a2d1 (diff)
start goto line
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);