aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-03-03 08:41:39 +0000
committerBlaž Hrastnik2022-03-04 00:36:31 +0000
commit5d14f56fa9822b18107a5a5efac98dfe9d08f8ce (patch)
treedcfa99543ac8b789d5566358c713a78db90a49bc /helix-term
parent74a9dd51ffb7cd3c14d4c7b5502e4febad24caa0 (diff)
Reuse visual_coords_at_pos function in view
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 {