mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
Move the cursor back into the last column on CUU/CUD to match xterm
behaviour. From George Nachman.
This commit is contained in:
parent
982354765b
commit
5e4d9a3197
@ -488,6 +488,8 @@ screen_write_cursorup(struct screen_write_ctx *ctx, u_int ny)
|
||||
if (ny > s->cy - s->rupper)
|
||||
ny = s->cy - s->rupper;
|
||||
}
|
||||
if (s->cx == screen_size_x(s))
|
||||
s->cx--;
|
||||
if (ny == 0)
|
||||
return;
|
||||
|
||||
@ -512,6 +514,8 @@ screen_write_cursordown(struct screen_write_ctx *ctx, u_int ny)
|
||||
if (ny > s->rlower - s->cy)
|
||||
ny = s->rlower - s->cy;
|
||||
}
|
||||
if (s->cx == screen_size_x(s))
|
||||
s->cx--;
|
||||
if (ny == 0)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user