Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shell/platform/common/cpp/text_input_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ class TextInputModel {
size_t selection_extent_ = 0;

// Returns the left hand side of the selection.
size_t selection_start() {
size_t selection_start() const {
return std::min(selection_base_, selection_extent_);
}

// Returns the right hand side of the selection.
size_t selection_end() {
size_t selection_end() const {
return std::max(selection_base_, selection_extent_);
}
};
Expand Down