diff options
author | Blaž Hrastnik | 2021-06-20 14:37:11 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-20 14:37:11 +0000 |
commit | f41688d960ef89c29c4a51c872b8406fb8f81a85 (patch) | |
tree | be2ac249d18ee9d30966d4b08917d6397a48e47a /helix-term/src/commands.rs | |
parent | ffb54b4eac3403f145679b9be3691d24e13a9599 (diff) |
Merge `x` and `X`
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 8c290979..8b6e2d88 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -888,21 +888,6 @@ fn search_selection(cx: &mut Context) { // -fn select_line(cx: &mut Context) { - let count = cx.count(); - let (view, doc) = current!(cx.editor); - - let pos = doc.selection(view.id).primary(); - let text = doc.text(); - - let line = text.char_to_line(pos.head); - let start = text.line_to_char(line); - let end = text - .line_to_char(std::cmp::min(doc.text().len_lines(), line + count)) - .saturating_sub(1); - - doc.set_selection(view.id, Selection::single(start, end)); -} fn extend_line(cx: &mut Context) { let count = cx.count(); let (view, doc) = current!(cx.editor); |