Revision: 2803
          http://tmux.svn.sourceforge.net/tmux/?rev=2803&view=rev
Author:   tcunha
Date:     2012-05-22 20:59:12 +0000 (Tue, 22 May 2012)
Log Message:
-----------
Sync OpenBSD patchset 1117:

Use tty_pane_full_width macro in some more places.

Modified Paths:
--------------
    trunk/tty.c

Modified: trunk/tty.c
===================================================================
--- trunk/tty.c 2012-05-22 20:58:33 UTC (rev 2802)
+++ trunk/tty.c 2012-05-22 20:59:12 UTC (rev 2803)
@@ -740,9 +740,8 @@
 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 @@
 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);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to