summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3ef72bde..320bfc94 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1350,6 +1350,7 @@ fn copy_selection_on_line(cx: &mut Context, direction: Direction) {
range.head
};
+ // TODO: this should use visual offsets / pos_at_screen_coords
let head_pos = coords_at_pos(text, head);
let anchor_pos = coords_at_pos(text, range.anchor);