summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stopwatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stopwatch.c b/stopwatch.c
index 8d5b783..7c5ec76 100644
--- a/stopwatch.c
+++ b/stopwatch.c
@@ -51,7 +51,7 @@ display_stopwatch(int timerfd)
}
if (c == 'q') {
goto out;
- } else if (c == ' ') {
+ } else if (c == ' ' || c == 'p') {
paused ^= 1;
if (paused) {
if (timerfd_settime(timerfd, 0, &zero_time, &old_time))