aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-10-26 20:37:52 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-10-26 20:37:52 +0800
commitcb1f404cc6b8b9dce135efd26fa32dc0d6fd79c4 (patch)
tree70fea121bc8c6fac3287c7a96fb8f5f86ec6f2e7 /include
parent795126a90d651ede075e9a94741dae4841e4de62 (diff)
downloadrwebbrowser-cb1f404cc6b8b9dce135efd26fa32dc0d6fd79c4.tar.gz
rwebbrowser-cb1f404cc6b8b9dce135efd26fa32dc0d6fd79c4.tar.xz
feat(tui): add document navigation and text selection
Diffstat (limited to 'include')
-rw-r--r--include/ricochet/tui/view.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ricochet/tui/view.hh b/include/ricochet/tui/view.hh
index f5f33d4..cc1d0fd 100644
--- a/include/ricochet/tui/view.hh
+++ b/include/ricochet/tui/view.hh
@@ -64,6 +64,8 @@ struct ViewSnapshot
DraftRevision draft_revision {};
DisplayPosition cursor {};
DisplayPosition viewport_anchor {};
+ // Relative visual row for blank table space with no text at the exact top.
+ std::int64_t viewport_row_offset { 0 };
std::optional<SelectionSnapshot> selection {};
std::vector<HorizontalScroll> horizontal_scroll {};
SearchSnapshot search {};