vi and popd/clear fix for nnotes too
This commit is contained in:
parent
7b90677f99
commit
f235bbf084
2
nnotes
2
nnotes
|
|
@ -35,7 +35,7 @@ else
|
||||||
echo "$DATEDIR"
|
echo "$DATEDIR"
|
||||||
pushd "$NOTESDIR" > /dev/null
|
pushd "$NOTESDIR" > /dev/null
|
||||||
printf "\033]2;$NOTETYPE note\a"
|
printf "\033]2;$NOTETYPE note\a"
|
||||||
$EDITOR
|
${EDITOR:-vi} || true # || true so if editor fails we still clear title & popd
|
||||||
printf "\033]2;\a"
|
printf "\033]2;\a"
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue