Use tty_pane_full_width macro in some more places.

pull/1/head
Nicholas Marriott 2012-05-22 09:37:54 +00:00
parent 2f93affb98
commit 82b053a811
1 changed files with 2 additions and 4 deletions

6
tty.c
View File

@ -740,9 +740,8 @@ void
tty_cmd_insertcharacter(struct tty *tty, const struct tty_ctx *ctx)
{
struct window_pane *wp = ctx->wp;
struct screen *s = wp->screen;
if (ctx->xoff != 0 || screen_size_x(s) < tty->sx) {
if (!tty_pane_full_width(tty, ctx)) {
tty_draw_line(tty, wp->screen, ctx->ocy, ctx->xoff, ctx->yoff);
return;
}
@ -762,9 +761,8 @@ void
tty_cmd_deletecharacter(struct tty *tty, const struct tty_ctx *ctx)
{
struct window_pane *wp = ctx->wp;
struct screen *s = wp->screen;
if (ctx->xoff != 0 || screen_size_x(s) < tty->sx ||
if (!tty_pane_full_width(tty, ctx) ||
(!tty_term_has(tty->term, TTYC_DCH) &&
!tty_term_has(tty->term, TTYC_DCH1))) {
tty_draw_line(tty, wp->screen, ctx->ocy, ctx->xoff, ctx->yoff);