summaryrefslogtreecommitdiff
path: root/helix-term/src/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-01 03:23:07 +0000
committerBlaž Hrastnik2020-10-01 03:25:03 +0000
commite39bd211d1579bfafa1774f6915af5725041781e (patch)
tree258a92098896a3e903da6b27a076388e2a6a0fb6 /helix-term/src/editor.rs
parent1da0be0aa045a4acd0246d82bf6214f8ec651476 (diff)
argh -> clap to speed up compilation (no syn/proc_macro)
Diffstat (limited to 'helix-term/src/editor.rs')
-rw-r--r--helix-term/src/editor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs
index 2cc210f4..b745eff2 100644
--- a/helix-term/src/editor.rs
+++ b/helix-term/src/editor.rs
@@ -1,4 +1,4 @@
-use crate::Args;
+use clap::ArgMatches as Args;
use helix_core::{state::coords_at_pos, state::Mode, syntax::HighlightEvent, Range, State};
use helix_view::{commands, keymap, View};
@@ -53,7 +53,7 @@ impl Editor {
// TODO; move to state
};
- if let Some(file) = args.files.pop() {
+ if let Some(file) = args.values_of_t::<PathBuf>("files").unwrap().pop() {
editor.open(file)?;
}