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, 6 insertions, 0 deletions
diff --git a/src/Selection.h b/src/Selection.h
index 4cda65d97..bc0f2208a 100644
--- a/src/Selection.h
+++ b/src/Selection.h
@@ -81,6 +81,12 @@ struct SelectionSegment {
if (end < p)
end = p;
}
+ SelectionSegment Subtract(Sci::Position increment) const noexcept {
+ SelectionSegment ret(start, end);
+ ret.start.Add(-increment);
+ ret.end.Add(-increment);
+ return ret;
+ }
};
struct SelectionRange {