diff options
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index ad37cb099a8..6796e422f7d 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.9 2009/06/29 21:30:50 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.10 2009/07/09 00:29:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -378,10 +378,8 @@ screen_write_insertline(struct screen_write_ctx *ctx, u_int ny) if (s->cy < s->rupper || s->cy > s->rlower) grid_view_insert_lines(s->grid, s->cy, ny); - else { - grid_view_insert_lines_region( - s->grid, s->rupper, s->rlower, s->cy, ny); - } + else + grid_view_insert_lines_region(s->grid, s->rlower, s->cy, ny); tty_write_cmd(ctx->wp, TTY_INSERTLINE, ny); } @@ -404,10 +402,8 @@ screen_write_deleteline(struct screen_write_ctx *ctx, u_int ny) if (s->cy < s->rupper || s->cy > s->rlower) grid_view_delete_lines(s->grid, s->cy, ny); - else { - grid_view_delete_lines_region( - s->grid, s->rupper, s->rlower, s->cy, ny); - } + else + grid_view_delete_lines_region(s->grid, s->rlower, s->cy, ny); tty_write_cmd(ctx->wp, TTY_DELETELINE, ny); } |