TIOCSWINSZ: fix alignment and spelling

This commit is contained in:
Daniel Eklöf 2019-06-24 19:39:31 +02:00
parent 7fb0c4b342
commit 2b3f3711fc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

8
main.c
View file

@ -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");
}