diff options
author | Thomas Adam <thomas@xteddy.org> | 2013-04-13 17:05:49 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2013-04-13 17:05:49 +0100 |
commit | b58bca9a72009101da373a3b7463fd866ecac58c (patch) | |
tree | e8f9b4b720b4c05f67fd47505b5170c4fd33dcb0 /screen-write.c | |
parent | e312db140868754358d40ec17595327a8fbbf180 (diff) | |
parent | 27dcf470dc4aa5901ac7f01b3a9f971e02f2229e (diff) | |
download | rtmux-b58bca9a72009101da373a3b7463fd866ecac58c.tar.gz rtmux-b58bca9a72009101da373a3b7463fd866ecac58c.tar.bz2 rtmux-b58bca9a72009101da373a3b7463fd866ecac58c.zip |
Merge branch 'obsd-master'
Conflicts:
tmux.c
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c index 3e836938..b423df71 100644 --- a/screen-write.c +++ b/screen-write.c @@ -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; |