diff options
author | Blaž Hrastnik | 2020-09-13 11:06:53 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-09-13 11:06:53 +0000 |
commit | b827b41efea1a11ab245c7aac6c12a34501464d5 (patch) | |
tree | 12390ce968e8996adc8c1733736d3ffc03cc51db /helix-core | |
parent | b08278807ee51e279c07dd6b7955713455a4c654 (diff) |
Address clippy lint.
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/commands.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helix-core/src/commands.rs b/helix-core/src/commands.rs index 914ca0fe..2c420b6e 100644 --- a/helix-core/src/commands.rs +++ b/helix-core/src/commands.rs @@ -80,9 +80,8 @@ pub fn prepend_to_line(state: &mut State, _count: usize) { let positions: Vec<_> = lines .into_iter() .map(|index| { - // adjust all positions to the end of the line. - let line_start = state.doc.line_to_char(index); - line_start + // adjust all positions to the start of the line. + state.doc.line_to_char(index) }) .collect(); |