aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-24 17:39:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-24 17:39:31 +0000
commit2b3f3711fcfd6ee5875764de475cf827dfcac9bf (patch)
tree0224728593da5ab8d95926ed1c9da5b268a121c5 /main.c
parentcsi: fix cursor request response; add 1, not 2 (diff)
TIOCSWINSZ: fix alignment and spelling
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 2e891cd1..c7a89fed 100644
--- a/main.c
+++ b/main.c
@@ -447,13 +447,13 @@ resize(struct context *c, int width, int height)
setenv("COLUMNS", cols_s, 1);
setenv("LINES", rows_s, 1);
- /* SIignal TIOCSWINSZ */
+ /* Signal TIOCSWINSZ */
if (ioctl(c->term.ptmx, TIOCSWINSZ,
&(struct winsize){
.ws_row = c->term.grid.rows,
- .ws_col = c->term.grid.cols,
- .ws_xpixel = c->width,
- .ws_ypixel = c->height}) == -1)
+ .ws_col = c->term.grid.cols,
+ .ws_xpixel = c->width,
+ .ws_ypixel = c->height}) == -1)
{
LOG_ERRNO("TIOCSWINSZ");
}