diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-10-28 23:11:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 23:11:54 -0400 |
commit | a7e7961f56cc0c75c56db83ecdff5de28ab05101 (patch) | |
tree | 1b34b873316314a99a36671930105b53d716696f /src | |
parent | 566a1fc20236030ef854ce35bfeff785e317232e (diff) | |
parent | e3854123e03c157bc3a60eb7e6d2d03df2aa2702 (diff) | |
download | rbw-a7e7961f56cc0c75c56db83ecdff5de28ab05101.tar.gz rbw-a7e7961f56cc0c75c56db83ecdff5de28ab05101.zip |
Merge pull request #70 from Dophin2009/nvim-no-swap
Disable swap and shada for EDITOR nvim
Diffstat (limited to 'src')
-rw-r--r-- | src/edit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.rs b/src/edit.rs index 45e9534..f7d8131 100644 --- a/src/edit.rs +++ b/src/edit.rs @@ -13,7 +13,7 @@ pub fn edit(contents: &str, help: &str) -> Result<String> { let mut args = vec![]; match editor.file_name() { Some(editor) => match editor.to_str() { - Some("vim") => { + Some("vim") | Some("nvim") => { // disable swap files and viminfo for password entry args.push(std::ffi::OsStr::new("-ni")); args.push(std::ffi::OsStr::new("NONE")); |