Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/df/gfx/df_views.c
Original file line number Diff line number Diff line change
Expand Up @@ -7406,6 +7406,23 @@ DF_VIEW_UI_FUNCTION_DEF(Output)
}
}

//////////////////////////////
//- T: Autoscrolling
//

static S64 last_frame_line_count = 0;
if(txti_buffer_is_ready)
{
if (txti_buffer_info.total_line_count > last_frame_line_count)
{
S64 line_num = txti_buffer_info.total_line_count;
tv->cursor = tv->mark = txt_pt(line_num, 1);
tv->center_cursor = !tv->contain_cursor || (line_num < target_visible_line_num_range.min);
}

last_frame_line_count = txti_buffer_info.total_line_count;
}

//////////////////////////////
//- rjf: top-level container interaction (scrolling)
//
Expand Down