diff options
Diffstat (limited to 'rwc.c')
-rw-r--r-- | rwc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rwc.c b/rwc.c index c828644..43ea95a 100644 --- a/rwc.c +++ b/rwc.c @@ -187,11 +187,12 @@ from_stdin: if (n > 0) break; } - printf("%s%s%c", - (ev->mask & (IN_DELETE | IN_MOVED_FROM) ? - "- " : ""), - name, - input_delim); + const char *mark = ""; + if (ev->mask & (IN_DELETE | IN_MOVED_FROM)) + mark = "- "; + else if (ev->mask & IN_CREATE) + mark = "+ "; + printf("%s%s%c", mark, name, input_delim); fflush(stdout); if (eflag) exit(0); |