We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c65c6d1 commit 7b07ebeCopy full SHA for 7b07ebe
shell/platform/common/cpp/text_input_model.h
@@ -117,12 +117,12 @@ class TextInputModel {
117
size_t selection_extent_ = 0;
118
119
// Returns the left hand side of the selection.
120
- size_t selection_start() {
+ size_t selection_start() const {
121
return std::min(selection_base_, selection_extent_);
122
}
123
124
// Returns the right hand side of the selection.
125
- size_t selection_end() {
+ size_t selection_end() const {
126
return std::max(selection_base_, selection_extent_);
127
128
};
0 commit comments