mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
options_get_style return const too.
This commit is contained in:
4
style.c
4
style.c
@ -182,7 +182,7 @@ style_update_old(struct options *oo, const char *name, struct grid_cell *gc)
|
||||
void
|
||||
style_apply(struct grid_cell *gc, struct options *oo, const char *name)
|
||||
{
|
||||
struct grid_cell *gcp;
|
||||
const struct grid_cell *gcp;
|
||||
|
||||
memcpy(gc, &grid_default_cell, sizeof *gc);
|
||||
gcp = options_get_style(oo, name);
|
||||
@ -195,7 +195,7 @@ style_apply(struct grid_cell *gc, struct options *oo, const char *name)
|
||||
void
|
||||
style_apply_update(struct grid_cell *gc, struct options *oo, const char *name)
|
||||
{
|
||||
struct grid_cell *gcp;
|
||||
const struct grid_cell *gcp;
|
||||
|
||||
gcp = options_get_style(oo, name);
|
||||
if (gcp->fg != 8)
|
||||
|
Reference in New Issue
Block a user