mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 04:28:48 +00:00
Fix character position check, from Tiago Resende.
This commit is contained in:
parent
3dc7b805d3
commit
044c0f978f
@ -1048,7 +1048,7 @@ screen_write_cell(struct screen_write_ctx *ctx,
|
||||
|
||||
/* Sanity checks. */
|
||||
if (((s->mode & MODE_WRAP) && s->cx > screen_size_x(s) - width)
|
||||
|| s->cy > screen_size_y(s) - width)
|
||||
|| s->cy > screen_size_y(s) - 1)
|
||||
return;
|
||||
|
||||
/* Handle overwriting of UTF-8 characters. */
|
||||
|
Loading…
Reference in New Issue
Block a user