aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 39a8df53..8ee05ece 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1551,6 +1551,7 @@ fn search_impl(
};
doc.set_selection(view.id, selection);
+ // TODO: is_cursor_in_view does the same calculation as ensure_cursor_in_view
if view.is_cursor_in_view(doc, 0) {
view.ensure_cursor_in_view(doc, scrolloff);
} else {