diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-11-13 10:42:45 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-11-13 10:42:45 +0000 |
commit | 3df4959f51a444a83e92894c390182dd48e02025 (patch) | |
tree | 31591c7d439c6d3841e1610e4c2cf70d5f5d115c /status.c | |
parent | a7027ed8e5d8fd314c1fafaf0c809b575a753a09 (diff) | |
parent | c5689a5a4031a43769b8b721cafa6d1eab6abc44 (diff) | |
download | rtmux-3df4959f51a444a83e92894c390182dd48e02025.tar.gz rtmux-3df4959f51a444a83e92894c390182dd48e02025.tar.bz2 rtmux-3df4959f51a444a83e92894c390182dd48e02025.zip |
Merge branch 'obsd-master'
Conflicts:
Makefile
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -746,7 +746,7 @@ status_prompt_redraw(struct client *c) struct session *s = c->session; struct screen old_status; size_t i, size, left, len, off; - struct grid_cell gc, *gcp; + struct grid_cell gc; if (c->tty.sx == 0 || c->tty.sy == 0) return (0); @@ -789,8 +789,9 @@ status_prompt_redraw(struct client *c) /* Apply fake cursor. */ off = len + c->prompt_index - off; - gcp = grid_view_get_cell(c->status.grid, off, 0); - gcp->attr ^= GRID_ATTR_REVERSE; + grid_view_get_cell(c->status.grid, off, 0, &gc); + gc.attr ^= GRID_ATTR_REVERSE; + grid_view_set_cell(c->status.grid, off, 0, &gc); if (grid_compare(c->status.grid, old_status.grid) == 0) { screen_free(&old_status); |