LibGUI: Prevent selecting empty line in TextEditor on double click (#6537)

This commit is contained in:
Rafał 2021-04-21 23:48:26 +02:00 committed by GitHub
commit c41c41cc0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-18 19:16:47 +09:00
3 changed files with 16 additions and 0 deletions

View file

@ -190,6 +190,7 @@ public:
size_t first_non_whitespace_column() const;
Optional<size_t> last_non_whitespace_column() const;
bool ends_in_whitespace() const;
bool can_select() const;
bool is_empty() const { return length() == 0; }
size_t leading_spaces() const;