aboutsummaryrefslogtreecommitdiff
path: root/include/ricochet/tui/view.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/ricochet/tui/view.hh')
-rw-r--r--include/ricochet/tui/view.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ricochet/tui/view.hh b/include/ricochet/tui/view.hh
index d259cf3..f5f33d4 100644
--- a/include/ricochet/tui/view.hh
+++ b/include/ricochet/tui/view.hh
@@ -39,6 +39,9 @@ struct SelectionSnapshot
// The normalized half-open range also covers any controls between its endpoints.
DocumentRange range {};
SelectionDirection direction { SelectionDirection::Forward };
+ // Inclusive endpoint units retain the anchor through reversal and history restore.
+ DocumentRange anchor {};
+ DocumentRange active {};
};
struct HorizontalScroll