about summary refs log tree commit diff
path: root/rwc.c
diff options
context:
space:
mode:
Diffstat (limited to 'rwc.c')
-rw-r--r--rwc.c11
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);