diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-11-01 12:01:12 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-11-01 12:01:12 +0000 |
commit | 7d330c19e822c09164264eebfddad32bb1194a6d (patch) | |
tree | 4e809926ec83e0e4654cad90664a5b325ef01ab0 /screen.c | |
parent | 774903f6c4b1c1ae44517af43a7d70d80eb7d805 (diff) | |
parent | 8d2286b76917debc4f6c3b0903ad2807ae254bb5 (diff) |
Merge branch 'obsd-master' into master
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -81,7 +81,8 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) s->path = NULL; s->cstyle = SCREEN_CURSOR_DEFAULT; - s->ccolour = xstrdup(""); + s->ccolour = -1; + s->default_ccolour = -1; s->tabs = NULL; s->sel = NULL; @@ -125,7 +126,6 @@ screen_free(struct screen *s) free(s->tabs); free(s->path); free(s->title); - free(s->ccolour); if (s->write_list != NULL) screen_write_free_list(s); @@ -189,10 +189,9 @@ 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) +screen_set_cursor_colour(struct screen *s, int colour) { - free(s->ccolour); - s->ccolour = xstrdup(colour); + s->ccolour = colour; } /* Set screen title. */ |