mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibGUI: Prevent selecting empty line in TextEditor on double click (#6537)
This commit is contained in:
parent
4115fcc933
commit
c41c41cc0f
3 changed files with 16 additions and 0 deletions
|
@ -228,6 +228,9 @@ void TextEditor::doubleclick_event(MouseEvent& event)
|
|||
if (is_displayonly())
|
||||
return;
|
||||
|
||||
if (!current_line().can_select())
|
||||
return;
|
||||
|
||||
// NOTE: This ensures that spans are updated before we look at them.
|
||||
flush_pending_change_notification_if_needed();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue