Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --readonly flag to enter readonly mode #7128

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
fix helpers
  • Loading branch information
ds-cbo committed May 24, 2023
commit 0e4a96bca93fa0c120af3a8c0ad38910f0191fd4
9 changes: 7 additions & 2 deletions helix-term/tests/test/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ pub async fn test_key_sequence_with_input_text<T: Into<TestCase>>(
let test_case = test_case.into();
let mut app = match app {
Some(app) => app,
None => Application::new(Args::default(), test_config(), test_syntax_conf(None))?,
None => Application::new(
Args::default(),
test_config(),
test_syntax_conf(None),
false,
)?,
};

let (view, doc) = helix_view::current!(app.editor);
Expand Down Expand Up @@ -320,7 +325,7 @@ impl AppBuilder {
}

pub fn build(self) -> anyhow::Result<Application> {
let mut app = Application::new(self.args, self.config, self.syn_conf)?;
let mut app = Application::new(self.args, self.config, self.syn_conf, false)?;

if let Some((text, selection)) = self.input {
let (view, doc) = helix_view::current!(app.editor);
Expand Down