aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-14 01:04:03 +0000
committerBlaž Hrastnik2021-03-14 08:14:34 +0000
commit1cf887dea93f7aa2184772fa2073751f031c5bf3 (patch)
tree26756386efff7c8dd07c918a78a7a2c485816698 /helix-term
parent3445abf88e550cce8ff5683f6fe45d7310597fd7 (diff)
Cleanup: use doc.selection() instead of doc.state.selection().
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs1
-rw-r--r--helix-term/src/ui/editor.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index edc38a48..36edde4c 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -942,7 +942,6 @@ pub fn yank(cx: &mut Context) {
// TODO: should selections be made end inclusive?
let doc = cx.doc();
let values = doc
- .state
.selection()
.fragments(doc.text().slice(..))
.map(|cow| cow.into_owned())
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 68f25830..abdbb7a3 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -209,7 +209,6 @@ impl EditorView {
for selection in view
.doc
- .state
.selection()
.ranges()
.iter()