default to vi if no editor set

This commit is contained in:
Leonora Tindall 2026-08-19 11:02:39 -05:00
parent 7f8fbbf55b
commit 9d629b9bce
1 changed files with 1 additions and 1 deletions

2
nnote
View File

@ -44,7 +44,7 @@ else
fi fi
pushd "$NOTESDIR" > /dev/null pushd "$NOTESDIR" > /dev/null
printf "\033]2;$NOTENAME $NOTETYPE note\a" printf "\033]2;$NOTENAME $NOTETYPE note\a"
$EDITOR "$NOTEPATH" || true # || true so we always clear header and popd %{EDITOR:-vi} "$NOTEPATH" || true # || true so we always clear header and popd
printf "\033]2;\a" printf "\033]2;\a"
popd > /dev/null popd > /dev/null
fi fi