aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-03-31 06:58:52 +0000
committerBlaž Hrastnik2022-03-31 06:59:09 +0000
commitd15c875214d2147bf9bdf03ef3445752476d14b3 (patch)
treede04b0d98dc0aff7671f99a89cc8b7126c319550
parentab7885e93423dbfb57e2b6e7589672c67a4666e8 (diff)
Add a TODO for the future
-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);