Skip to content

Commit 4f21e63

Browse files
author
Yusaku Hatanaka
authored
chore: change delete task behavior (#59)
1 parent 1665770 commit 4f21e63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

task/task.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ func (c *clientImpl) selectTaskName(tasks Tasks) (string, error) {
207207
return "", nil
208208
}
209209
c.screenClient.Clear()
210-
s.PostEventWait(tcell.NewEventKey(tcell.KeyDown, ' ', tcell.ModNone))
210+
211+
// when bottom task is deleted, key is up
212+
if len(tasks) == i {
213+
s.PostEventWait(tcell.NewEventKey(tcell.KeyUp, ' ', tcell.ModNone))
214+
}
211215
}
212216
case screen.EventScreenResize:
213217
// reset

0 commit comments

Comments
 (0)