diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-12-28 16:01:09 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-12-28 16:01:09 +0000 |
commit | 5dd0e82809f492c06d9eb20903b70286cb60d856 (patch) | |
tree | ec09d3666f79ec81b504569e1211b4ff2a4fd974 | |
parent | e15a8a7c4681e4f975d80fc26b9f7c6686c94a9c (diff) | |
parent | 2a1f27eb1af6645209746659b600fc546f725605 (diff) | |
download | rtmux-5dd0e82809f492c06d9eb20903b70286cb60d856.tar.gz rtmux-5dd0e82809f492c06d9eb20903b70286cb60d856.tar.bz2 rtmux-5dd0e82809f492c06d9eb20903b70286cb60d856.zip |
Merge branch 'obsd-master'
-rw-r--r-- | screen.c | 4 | ||||
-rw-r--r-- | tty.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -94,10 +94,10 @@ screen_set_cursor_style(struct screen *s, u_int style) /* Set screen cursor colour. */ void -screen_set_cursor_colour(struct screen *s, const char *colour_string) +screen_set_cursor_colour(struct screen *s, const char *colour) { free(s->ccolour); - s->ccolour = xstrdup(colour_string); + s->ccolour = xstrdup(colour); } /* Set screen title. */ @@ -491,7 +491,7 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) { int changed; - if (s != NULL && strcmp(s->ccolour, tty->ccolour)) + if (s != NULL && strcmp(s->ccolour, tty->ccolour) != 0) tty_force_cursor_colour(tty, s->ccolour); if (tty->flags & TTY_NOCURSOR) |