commit 06b9dd4a16ab4b8982440cfb62e3166938aee814
parent 54f52c5c1aa9be7536e48d8eee937b39dc1d8988
Author: Rob King <jking@deadpixi.com>
Date: Sun, 28 Jul 2019 22:47:10 -0500
Style fixes.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mtm.c b/mtm.c
@@ -71,7 +71,7 @@ struct NODE{
static NODE *root, *focused, *lastfocused = NULL;
static int commandkey = CTL(COMMAND_KEY), nfds = 1; /* stdin */
static fd_set fds;
-static char iobuf[BUFSIZ + 1];
+static char iobuf[BUFSIZ];
static void setupevents(NODE *n);
static void reshape(NODE *n, int y, int x, int h, int w);
@@ -759,7 +759,6 @@ newview(NODE *p, int y, int x, int h, int w) /* Open a new view. */
nodelay(pri->win, TRUE); nodelay(alt->win, TRUE);
scrollok(pri->win, TRUE); scrollok(alt->win, TRUE);
- idlok(pri->win, TRUE); idlok(alt->win, TRUE);
keypad(pri->win, TRUE); keypad(alt->win, TRUE);
setupevents(n);
@@ -986,7 +985,7 @@ getinput(NODE *n, fd_set *f) /* Recursively check all ptty's for input. */
return false;
if (n && n->t == VIEW && n->pt > 0 && FD_ISSET(n->pt, f)){
- ssize_t r = read(n->pt, iobuf, BUFSIZ);
+ ssize_t r = read(n->pt, iobuf, sizeof(iobuf));
if (r > 0)
vtwrite(&n->vp, iobuf, r);
if (r <= 0 && errno != EINTR && errno != EWOULDBLOCK)