Skip to content

Conversation

@mkupchik
Copy link

TextArea::draw() checks there's a selected area before drawing highlighted background. However, there's a duplicate condition m_selection_end != Vector2i(-1) in this check, presumably due to a typo. Let's do this check properly, using the same rules as in TextArea::keyboard_event().

As TextArea::m_selectable field is a bool, it makes sense for TextArea::is_selectable() and TextArea::set_selectable() methods to return and accept bool.

Also it's enough to clear m_tab_offsets once in TabWidgetBase::perform_layout().

As TextArea::m_selectable field is a bool, it makes sense for TextArea::is_selectable() and TextArea::set_selectable() methods to return and accept bool.
It's enough to clear m_tab_offsets once in this context.
TextArea::draw() checks there's a selected area before drawing highlighted background. However, there's a duplicate condition `m_selection_end != Vector2i(-1)` in this check, presumably due to a typo. Let's do this check properly, using the same rules as in TextArea::keyboard_event().
@Neustradamus
Copy link

@mkupchik: I have sent you several e-mails in one year, I have not received one answer, can you look your mailbox and reply me by e-mail? Thanks in advance.

@wjakob wjakob force-pushed the master branch 9 times, most recently from 654b8a5 to 1cbff2e Compare August 29, 2025 18:29
@wjakob wjakob force-pushed the master branch 17 times, most recently from 339b241 to 6497f59 Compare September 1, 2025 21:56
@wjakob wjakob force-pushed the master branch 8 times, most recently from c75898b to 1bbd038 Compare September 6, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants