diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-08 14:56:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-08 15:15:51 +0300 |
commit | 89b3c9da48cf685361105df1ca2e9ed27ef240ae (patch) | |
tree | a1b2aa4e43fc556d1966ac73838373d824e73fab /source/blender/editors/include/ED_text.h | |
parent | 945b1143df1686f705fd8bf2ff05d04460aa52fa (diff) |
Text Editor: don't force other views to follow the cursor
While the existing behavior worked as intended,
it wasn't possible to have two views on the same file at different
locations.
Since there isn't much use in having two views open at the same location
allow one view to be at a different scroll location.
UI edit-source and selecting a text data block now need explicit calls
to scroll to the cursor location.
Resolves T87284
Diffstat (limited to 'source/blender/editors/include/ED_text.h')
-rw-r--r-- | source/blender/editors/include/ED_text.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_text.h b/source/blender/editors/include/ED_text.h index 6742561735e..2284c82b3d5 100644 --- a/source/blender/editors/include/ED_text.h +++ b/source/blender/editors/include/ED_text.h @@ -34,6 +34,8 @@ struct UndoStep; struct UndoType; struct bContext; +void ED_text_scroll_to_cursor(struct SpaceText *st, struct ARegion *region, bool center); + bool ED_text_region_location_from_cursor(struct SpaceText *st, struct ARegion *region, const int cursor_co[2], |