diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-23 11:32:52 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-23 11:32:52 -0500 |
commit | f4172376d933c5c9033ff421f04db828825f9017 (patch) | |
tree | 8d53b18edb7aec7896ca48e5ab06c4448eec53e5 /buffer.c | |
parent | 376d732e48b89b0a0a392e2582826775e2d4a2d1 (diff) |
start goto line
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |