From 1cf887dea93f7aa2184772fa2073751f031c5bf3 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 14 Mar 2021 10:04:03 +0900 Subject: Cleanup: use doc.selection() instead of doc.state.selection(). --- helix-term/src/commands.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'helix-term/src/commands.rs') 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()) -- cgit v1.2.3-70-g09d2