Merge pull request #108399 from bruvzg/rtl_vflscr

[RTL] Add option to scroll follow visible characters.
This commit is contained in:
Thaddeus Crews 2025-07-10 11:39:31 -05:00
commit d36f394714
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
3 changed files with 43 additions and 0 deletions

View file

@ -527,6 +527,8 @@ private:
bool scroll_visible = false;
bool scroll_follow = false;
bool scroll_follow_visible_characters = false;
int follow_vc_pos = 0;
bool scroll_following = false;
bool scroll_active = true;
int scroll_w = 0;
@ -555,6 +557,7 @@ private:
HashMap<RID, Rect2> ac_element_bounds_cache;
void _update_follow_vc();
void _invalidate_accessibility();
void _invalidate_current_line(ItemFrame *p_frame);
@ -840,6 +843,9 @@ public:
void set_scroll_follow(bool p_follow);
bool is_scroll_following() const;
void set_scroll_follow_visible_characters(bool p_follow);
bool is_scroll_following_visible_characters() const;
void set_tab_size(int p_spaces);
int get_tab_size() const;