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
Merge remote-tracking branch 'upstream/master' into readonly
  • Loading branch information
ds-cbo committed Nov 28, 2023
commit 1ba472d98cdddd678528c892eb39071f9f74a815
8 changes: 8 additions & 0 deletions helix-term/tests/test/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,14 @@ impl AppBuilder {
}

pub fn build(self) -> anyhow::Result<Application> {
if let Some(path) = &self.args.working_directory {
bail!("Changing the working directory to {path:?} is not yet supported for integration tests");
}

if let Some((path, _)) = self.args.files.first().filter(|p| p.0.is_dir()) {
bail!("Having the directory {path:?} in args.files[0] is not yet supported for integration tests");
}

let mut app = Application::new(self.args, self.config, self.syn_conf, false)?;

if let Some((text, selection)) = self.input {
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.