minor improvements

This commit is contained in:
Ämin Baumeler 2025-06-10 15:11:49 +02:00
parent 6357eddbec
commit e4fe586db3

View File

@ -433,6 +433,9 @@ if [ "${1:-}" = "--day" ]; then
)
key=$(echo "$selection" | head -1)
line=$(echo "$selection" | tail -1)
if [ "$line" = "$key" ]; then
line=""
fi
hour=$(echo "$line" | cut -d '|' -f 1)
start=$(echo "$line" | cut -d '|' -f 2)
end=$(echo "$line" | cut -d '|' -f 3)
@ -442,7 +445,7 @@ if [ "${1:-}" = "--day" ]; then
hour="$DAY_START"
fi
exec $0 --new "$DISPLAY_DATE $hour:00"
elif [ -n "$fpath" ]; then
elif [ -z "$key" ] && [ -n "$fpath" ]; then
fpath="$ROOT/$fpath"
__edit "$start" "$end" "$fpath"
fi