summary refs log tree commit diff
path: root/bin/shotty.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-08 22:48:04 -0400
committerJune McEnroe <june@causal.agency>2019-07-08 22:48:04 -0400
commitbf233ce41d17e582bb1fff14af8f5a42f3c83c9d (patch)
treef683ee5511a6ce6e3a20f5649de6c4230dded89d /bin/shotty.c
parentAdd initial version of shotty (diff)
downloadsrc-bf233ce41d17e582bb1fff14af8f5a42f3c83c9d.tar.gz
src-bf233ce41d17e582bb1fff14af8f5a42f3c83c9d.zip
Use char literals consistently
Diffstat (limited to 'bin/shotty.c')
-rw-r--r--bin/shotty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/shotty.c b/bin/shotty.c
index 40eb6108..d61e8060 100644
--- a/bin/shotty.c
+++ b/bin/shotty.c
@@ -79,7 +79,7 @@ static char updateNUL(wchar_t ch) {
 
 	for (int i = 1; i < width; ++i) {
 		cell(y, x + i)->style = style;
-		cell(y, x + i)->ch = L'\0';
+		cell(y, x + i)->ch = '\0';
 	}
 	x = MIN(x + width, cols - 1);
 
@@ -157,7 +157,7 @@ static char updateCSI(wchar_t ch) {
 			if (ps[0] == 1) to = cell(y, x);
 			for (struct Cell *clear = from; clear <= to; ++clear) {
 				clear->style = style;
-				clear->ch = L' ';
+				clear->ch = ' ';
 			}
 		}
 		break; case EL: {
@@ -167,7 +167,7 @@ static char updateCSI(wchar_t ch) {
 			if (ps[0] == 1) to = cell(y, x);
 			for (struct Cell *clear = from; clear <= to; ++clear) {
 				clear->style = style;
-				clear->ch = L' ';
+				clear->ch = ' ';
 			}
 		}