Skip to content

Commit 94c23e5

Browse files
committed
Use different fg/bg separator
Signed-off-by: Jiri Tyr <jiri.tyr@gmail.com>
1 parent 7a12b37 commit 94c23e5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/editor/syntax_ts.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,25 +132,25 @@ ts_input_read (void *payload, uint32_t byte_index, TSPoint position, uint32_t *b
132132
/* --------------------------------------------------------------------------------------------- */
133133

134134
/**
135-
* Parse a color spec "foreground;background" and allocate an MC color pair.
135+
* Parse a color spec "foreground/background" and allocate an MC color pair.
136136
* A foreground of "-" means use the default color. Returns the color pair ID.
137137
*/
138138
static int
139139
ts_alloc_color_from_spec (const char *spec)
140140
{
141-
char *buf, *fg, *bg, *semi;
141+
char *buf, *fg, *bg, *sep;
142142
tty_color_pair_t color;
143143
int result;
144144

145145
buf = g_strdup (spec);
146146
g_strstrip (buf);
147147

148-
semi = strchr (buf, ';');
149-
if (semi != NULL)
148+
sep = strchr (buf, '/');
149+
if (sep != NULL)
150150
{
151-
*semi = '\0';
151+
*sep = '\0';
152152
fg = buf;
153-
bg = semi + 1;
153+
bg = sep + 1;
154154
if (*bg == '\0')
155155
bg = NULL;
156156
}

0 commit comments

Comments
 (0)