[RTL] Add option to scroll follow visible characters.

This commit is contained in:
Pāvels Nadtočajevs 2025-07-08 11:12:23 +03:00
parent d7cc121e64
commit 45a564f4f8
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
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;
@ -554,6 +556,7 @@ private:
HashMap<RID, Rect2> ac_element_bounds_cache;
void _update_follow_vc();
void _invalidate_accessibility();
void _invalidate_current_line(ItemFrame *p_frame);
@ -839,6 +842,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;