mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
82b25a9d62
2
tmux.1
2
tmux.1
@ -4332,7 +4332,7 @@ Align text to the left, centre or right of the available space if appropriate.
|
|||||||
.It Xo Ic list=on ,
|
.It Xo Ic list=on ,
|
||||||
.Ic list=focus ,
|
.Ic list=focus ,
|
||||||
.Ic list=left-marker ,
|
.Ic list=left-marker ,
|
||||||
.Ic list=right=marker ,
|
.Ic list=right-marker ,
|
||||||
.Ic nolist
|
.Ic nolist
|
||||||
.Xc
|
.Xc
|
||||||
Mark the position of the various window list components in the
|
Mark the position of the various window list components in the
|
||||||
|
11
tty.c
11
tty.c
@ -527,6 +527,12 @@ tty_putc(struct tty *tty, u_char ch)
|
|||||||
{
|
{
|
||||||
const char *acs;
|
const char *acs;
|
||||||
|
|
||||||
|
if ((tty->term->flags & TERM_EARLYWRAP) &&
|
||||||
|
ch >= 0x20 && ch != 0x7f &&
|
||||||
|
tty->cy == tty->sy - 1 &&
|
||||||
|
tty->cx + 1 >= tty->sx)
|
||||||
|
return;
|
||||||
|
|
||||||
if (tty->cell.attr & GRID_ATTR_CHARSET) {
|
if (tty->cell.attr & GRID_ATTR_CHARSET) {
|
||||||
acs = tty_acs_get(tty, ch);
|
acs = tty_acs_get(tty, ch);
|
||||||
if (acs != NULL)
|
if (acs != NULL)
|
||||||
@ -557,6 +563,11 @@ tty_putc(struct tty *tty, u_char ch)
|
|||||||
void
|
void
|
||||||
tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
|
tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
|
||||||
{
|
{
|
||||||
|
if ((tty->term->flags & TERM_EARLYWRAP) &&
|
||||||
|
tty->cy == tty->sy - 1 &&
|
||||||
|
tty->cx + len >= tty->sx)
|
||||||
|
len = tty->sx - tty->cx - 1;
|
||||||
|
|
||||||
tty_add(tty, buf, len);
|
tty_add(tty, buf, len);
|
||||||
if (tty->cx + width > tty->sx) {
|
if (tty->cx + width > tty->sx) {
|
||||||
tty->cx = (tty->cx + width) - tty->sx;
|
tty->cx = (tty->cx + width) - tty->sx;
|
||||||
|
Loading…
Reference in New Issue
Block a user