Skip to content

Commit 2b6e664

Browse files
committed
fixed regression links to anchors no longer scrolling to the target (#2768, #2766, #2389)
1 parent d40f374 commit 2b6e664

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ct/ct_text_view.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ void CtTextView::set_selection_at_offset_n_delta(const int offset,
241241
(void)iterEnd.forward_chars(delta);
242242
pTextBuffer->place_cursor(iterStart);
243243
pTextBuffer->move_mark(pTextBuffer->get_selection_bound(), iterEnd);
244+
mm().scroll_to(pTextBuffer->get_insert(), CtTextView::TEXT_SCROLL_MARGIN);
244245
}
245246

246247
// Called at list indent/unindent time

0 commit comments

Comments
 (0)