aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"));