aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Selection.h')
-rw-r--r--src/Selection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Selection.h b/src/Selection.h
index bc0f2208a..30e1e27ad 100644
--- a/src/Selection.h
+++ b/src/Selection.h
@@ -49,6 +49,9 @@ public:
void Add(Sci::Position increment) noexcept {
position = position + increment;
}
+ void AddVirtualSpace(Sci::Position increment) noexcept {
+ SetVirtualSpace(virtualSpace + increment);
+ }
bool IsValid() const noexcept {
return position >= 0;
}