default to vi if no editor set
This commit is contained in:
parent
7f8fbbf55b
commit
9d629b9bce
2
nnote
2
nnote
|
|
@ -44,7 +44,7 @@ else
|
|||
fi
|
||||
pushd "$NOTESDIR" > /dev/null
|
||||
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"
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue