diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-10-26 20:37:52 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-10-26 20:37:52 +0800 |
| commit | 2e6dc81391c5dbb787cfd793ad5823904b3b9c94 (patch) | |
| tree | 6c6de805790d75f1b3844d3d65c955f8ec832bf5 /ricochet/include | |
| parent | 2063bf09fa8828c602ca1726a1188f0c95ae8adb (diff) | |
| download | rcc-project-2e6dc81391c5dbb787cfd793ad5823904b3b9c94.tar.gz rcc-project-2e6dc81391c5dbb787cfd793ad5823904b3b9c94.tar.xz | |
feat(tui): add document navigation and text selection
Diffstat (limited to 'ricochet/include')
| -rw-r--r-- | ricochet/include/ricochet/tui/view.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ricochet/include/ricochet/tui/view.hh b/ricochet/include/ricochet/tui/view.hh index f5f33d4..cc1d0fd 100644 --- a/ricochet/include/ricochet/tui/view.hh +++ b/ricochet/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 {}; |
