aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Zhao <21zhaoe@protonmail.com>2021-09-24 21:54:55 -0400
committerEric Zhao <21zhaoe@protonmail.com>2021-09-24 21:55:59 -0400
commite3854123e03c157bc3a60eb7e6d2d03df2aa2702 (patch)
tree635805aa1ee558bb176fc31dde02832b2b63c8df
parenta3da3774a3befda7b45ec19e197e5029a3c291b2 (diff)
downloadrbw-e3854123e03c157bc3a60eb7e6d2d03df2aa2702.tar.gz
rbw-e3854123e03c157bc3a60eb7e6d2d03df2aa2702.zip
disable swap and shada for EDITOR nvim
-rw-r--r--src/edit.rs2
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"));