Fixed a small bug.
This commit is contained in:
parent
597ca68e42
commit
41131d4c19
1 changed files with 2 additions and 3 deletions
5
pomodoro
5
pomodoro
|
@ -153,8 +153,7 @@ funtion posttimer() {
|
|||
if ((s>59)); then
|
||||
((s=0))
|
||||
((m++))
|
||||
print
|
||||
notify "$message"
|
||||
notify "\r$message "
|
||||
fi
|
||||
printf "$rem+%02d:%02d" $m $s
|
||||
(( $firsttime )) && {
|
||||
|
@ -259,7 +258,7 @@ function askTitle() {
|
|||
return
|
||||
fi
|
||||
# if the number is a todo task number
|
||||
task=$(( task - ${#latestTasks} + 1 ))
|
||||
task=$(( task - ${#latestTasks} ))
|
||||
if (( task <= ${#todoTasks} )); then
|
||||
task="${todoTasks[$task]}"
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue