mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibGUI: Prevent selecting empty line in TextEditor on double click (#6537)
This commit is contained in:
parent
4115fcc933
commit
c41c41cc0f
Notes:
sideshowbarker
2024-07-18 19:16:47 +09:00
Author: https://github.com/Sauler 🔰
Commit: c41c41cc0f
Pull-request: https://github.com/SerenityOS/serenity/pull/6537
Reviewed-by: https://github.com/IdanHo
3 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue