aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Selection.h')
-rw-r--r--src/Selection.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Selection.h b/src/Selection.h
index 0cb1200f8..6fe828a2c 100644
--- a/src/Selection.h
+++ b/src/Selection.h
@@ -84,6 +84,8 @@ struct SelectionRange {
}
SelectionRange(SelectionPosition single) : caret(single), anchor(single) {
}
+ SelectionRange(int single) : caret(single), anchor(single) {
+ }
SelectionRange(SelectionPosition caret_, SelectionPosition anchor_) : caret(caret_), anchor(anchor_) {
}
SelectionRange(int caret_, int anchor_) : caret(caret_), anchor(anchor_) {
@@ -152,8 +154,8 @@ public:
void TrimSelection(SelectionPosition startPos, SelectionPosition endPos);
void AddSelection(SelectionPosition spPos);
void AddSelection(SelectionPosition spStartPos, SelectionPosition spEndPos, bool anchorLeft);
- bool CharacterInSelection(int posCharacter) const;
- bool InSelectionForEOL(int pos) const;
+ int CharacterInSelection(int posCharacter) const;
+ int InSelectionForEOL(int pos) const;
int VirtualSpaceFor(int pos) const;
void Clear();
void EmptyRanges();