|
|
@ -584,13 +584,11 @@ static int detect_brace_on_following_line(FILE *file, char *line,
|
|
|
|
char *peeked = NULL;
|
|
|
|
char *peeked = NULL;
|
|
|
|
long position = 0;
|
|
|
|
long position = 0;
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
wlr_log(WLR_DEBUG, "Peeking line %d", line_number + lines + 1);
|
|
|
|
|
|
|
|
free(peeked);
|
|
|
|
free(peeked);
|
|
|
|
peeked = peek_line(file, lines, &position);
|
|
|
|
peeked = peek_line(file, lines, &position);
|
|
|
|
if (peeked) {
|
|
|
|
if (peeked) {
|
|
|
|
peeked = strip_whitespace(peeked);
|
|
|
|
peeked = strip_whitespace(peeked);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wlr_log(WLR_DEBUG, "Peeked line: `%s`", peeked);
|
|
|
|
|
|
|
|
lines++;
|
|
|
|
lines++;
|
|
|
|
} while (peeked && strlen(peeked) == 0);
|
|
|
|
} while (peeked && strlen(peeked) == 0);
|
|
|
|
|
|
|
|
|
|
|
@ -695,7 +693,6 @@ bool read_config(FILE *file, struct sway_config *config,
|
|
|
|
free(line);
|
|
|
|
free(line);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wlr_log(WLR_DEBUG, "Expanded line: %s", expanded);
|
|
|
|
|
|
|
|
struct cmd_results *res;
|
|
|
|
struct cmd_results *res;
|
|
|
|
if (block && strcmp(block, "<commands>") == 0) {
|
|
|
|
if (block && strcmp(block, "<commands>") == 0) {
|
|
|
|
// Special case
|
|
|
|
// Special case
|
|
|
|