Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/helpers.rs')
| -rw-r--r-- | helix-term/tests/test/helpers.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/helix-term/tests/test/helpers.rs b/helix-term/tests/test/helpers.rs index 567422c3..70b3f402 100644 --- a/helix-term/tests/test/helpers.rs +++ b/helix-term/tests/test/helpers.rs @@ -6,17 +6,13 @@ use std::{ }; use anyhow::bail; +use crossterm::event::{Event, KeyEvent}; use helix_core::{diagnostic::Severity, test, Selection, Transaction}; use helix_term::{application::Application, args::Args, config::Config, keymap::merge_keys}; use helix_view::{current_ref, doc, editor::LspConfig, input::parse_macro, Editor}; use tempfile::NamedTempFile; use tokio_stream::wrappers::UnboundedReceiverStream; -#[cfg(windows)] -use crossterm::event::{Event, KeyEvent}; -#[cfg(not(windows))] -use termina::event::{Event, KeyEvent}; - /// Specify how to set up the input text with line feeds #[derive(Clone, Debug)] pub enum LineFeedHandling { @@ -349,10 +345,7 @@ impl AppBuilder { path: P, pos: Option<helix_core::Position>, ) -> Self { - self.args - .files - .insert(path.into(), vec![pos.unwrap_or_default()]); - + self.args.files.push((path.into(), pos.unwrap_or_default())); self } |