diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-25 15:15:44 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-25 15:15:44 +0100 |
commit | cbf1504fca76af655430228c56263c4f8397850f (patch) | |
tree | 1ba0c22aaaf07e89f397e15b1aa5dfe677e7c86d | |
parent | 83b2d5c5132f3c8cec8a7732fed8fd58f30e8554 (diff) | |
download | rtmux-cbf1504fca76af655430228c56263c4f8397850f.tar.gz rtmux-cbf1504fca76af655430228c56263c4f8397850f.tar.bz2 rtmux-cbf1504fca76af655430228c56263c4f8397850f.zip |
Do not clamp to needed size since it may be too big.
-rw-r--r-- | tty.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -704,7 +704,6 @@ int tty_window_bigger(struct tty *tty, struct window *w) { struct client *c = tty->client; - struct session *s = c->session; return (tty->sx < w->sx || tty->sy - status_line_size(c) < w->sy); } @@ -939,8 +938,6 @@ tty_clamp_line(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py, } if (*rx > nx) fatalx("%s: x too big, %u > %u", __func__, *rx, nx); - if (nx > *rx) - *rx = nx; return (1); } @@ -1036,8 +1033,6 @@ tty_clamp_area(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py, } if (*rx > nx) fatalx("%s: x too big, %u > %u", __func__, *rx, nx); - if (nx > *rx) - *rx = nx; if (yoff >= ctx->oy && yoff + ny <= ctx->oy + ctx->sy) { /* All visible. */ @@ -1062,8 +1057,6 @@ tty_clamp_area(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py, } if (*ry > ny) fatalx("%s: y too big, %u > %u", __func__, *ry, ny); - if (ny > *ry) - *ry = ny; return (1); } |