diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-05-14 16:21:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-05-14 16:21:55 +0000 |
commit | dd2f8d7d74a67f0bb3b44b482555c8f528332efd (patch) | |
tree | c9609e015592e9a6c968b6d6042cc076062ef0b6 /tty.c | |
parent | 4b64bd7b014f5e353a520983c973dad552394ba2 (diff) | |
download | rtmux-dd2f8d7d74a67f0bb3b44b482555c8f528332efd.tar.gz rtmux-dd2f8d7d74a67f0bb3b44b482555c8f528332efd.tar.bz2 rtmux-dd2f8d7d74a67f0bb3b44b482555c8f528332efd.zip |
Don't force wrapping with \n when asked, let the cursor code figure it out. Should fix terminals which use this to detect line breaks.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.97 2009-05-04 17:58:27 nicm Exp $ */ +/* $Id: tty.c,v 1.98 2009-05-14 16:21:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -652,10 +652,10 @@ tty_cmd_linefeed(struct tty *tty, struct window_pane *wp, unused va_list ap) tty_region(tty, s->old_rupper, s->old_rlower, wp->yoff); - tty_cursor(tty, s->old_cx, s->old_cy, wp->xoff, wp->yoff); - tty_putc(tty, '\n'); - - tty->cy++; + if (s->old_cy == s->old_rlower) { + tty_cursor(tty, s->old_cx, s->old_cy, wp->xoff, wp->yoff); + tty_putc(tty, '\n'); + } } void |