mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 08:07:03 +00:00
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.
This commit is contained in:
10
tty.c
10
tty.c
@ -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
|
||||
|
Reference in New Issue
Block a user