mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 08:26:45 +01:00
Merge pull request #3411 from RedSoxFan/fix-brace-detect-seeking
config: do not reset pos when braces found
This commit is contained in:
commit
d256182f49
1 changed files with 3 additions and 1 deletions
|
@ -613,7 +613,9 @@ static int detect_brace(FILE *file) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(line);
|
free(line);
|
||||||
fseek(file, pos, SEEK_SET);
|
if (ret == 0) {
|
||||||
|
fseek(file, pos, SEEK_SET);
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue