From e39bd211d1579bfafa1774f6915af5725041781e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 1 Oct 2020 12:23:07 +0900 Subject: argh -> clap to speed up compilation (no syn/proc_macro) --- helix-view/src/commands.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-view/src') diff --git a/helix-view/src/commands.rs b/helix-view/src/commands.rs index a3906b9b..1309d48a 100644 --- a/helix-view/src/commands.rs +++ b/helix-view/src/commands.rs @@ -151,6 +151,7 @@ pub fn extend_line_down(view: &mut View, count: usize) { pub fn split_selection_on_newline(view: &mut View, _count: usize) { let text = &view.state.doc.slice(..); // only compile the regex once + #[allow(clippy::trivial_regex)] static REGEX: Lazy = Lazy::new(|| Regex::new(r"\n").unwrap()); // TODO: use a transaction view.state.selection = selection::split_on_matches(text, view.state.selection(), ®EX) -- cgit v1.2.3-70-g09d2