aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-29 14:02:46 +0000
committerBlaž Hrastnik2021-08-29 14:02:46 +0000
commit4d24a436519d98b65f5b3b4a6f9970cc815c228f (patch)
tree52be5955adf1c01c9d5ba438b29e532ef50c49c4 /helix-term
parent81f51c13fa7de0ce2a7e787f7d6385d0e72097e9 (diff)
dap: use smallvec! macro
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 70abc783..193ea505 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -327,7 +327,7 @@ impl Application {
let path = path.clone();
self.editor
.open(path, helix_view::editor::Action::Replace)
- .unwrap();
+ .unwrap(); // TODO: there should be no unwrapping!
let (view, doc) = current!(self.editor);
@@ -351,10 +351,10 @@ impl Application {
.unwrap_or(0);
Selection::new(
- helix_core::SmallVec::from_vec(vec![Range::new(
+ helix_core::smallvec![Range::new(
start.min(text_end),
end.min(text_end),
- )]),
+ )],
0,
)
} else {