Skip to content

Commit

Permalink
tests: never use swapfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Jan 25, 2024
1 parent 8409fbf commit 57974cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/convert-to-html.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set nobackup " don't save backup files
set noswapfile " don't create swap files
set nowritebackup " don't create backup files while editing
set viminfofile=NONE " don't create .viminfo files
let g:html_no_progress = 1 " don't show a progress bar
Expand Down
2 changes: 1 addition & 1 deletion tests/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn setup_ctrlc_handler() -> Arc<AtomicBool> {

pub fn run_vim(args: Vec<&str>, output: &PathBuf, interrupted: &Arc<AtomicBool>) -> io::Result<()> {
let mut vim = Command::new("vim")
.arg("--not-a-term")
.args(["--not-a-term", "--cmd", "set noswapfile"])
.args(args)
.env("OUTPUT", output)
.env("HOME", env::current_dir().unwrap())
Expand Down

0 comments on commit 57974cd

Please sign in to comment.