mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
LibGUI: Add flag to TextDocument's word break locator methods
TextDocument::first_word_break_before was refactored out to be able to be used in multiple places throughout the project. It turns out that its behaviour needs to be slightly different depending on where its called, so it now has a start_at_column_before flag to decide which letter it "thinks" was clicked.
This commit is contained in:
parent
21b1aba03b
commit
4ad891a078
3 changed files with 6 additions and 6 deletions
|
@ -120,7 +120,7 @@ public:
|
|||
Optional<TextDocumentSpan> first_non_skippable_span_before(const TextPosition&) const;
|
||||
Optional<TextDocumentSpan> first_non_skippable_span_after(const TextPosition&) const;
|
||||
|
||||
TextPosition first_word_break_before(const TextPosition&) const;
|
||||
TextPosition first_word_break_before(const TextPosition&, bool start_at_column_before) const;
|
||||
TextPosition first_word_break_after(const TextPosition&) const;
|
||||
|
||||
void add_to_undo_stack(NonnullOwnPtr<TextDocumentUndoCommand>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue