sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 39975ccfb53cf52b33c3d5d4b9aa17e0b50eb09f
parent 33d9de88efa7642e20b37493ff60ad0e9689ea47
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Fri, 11 Jan 2019 20:02:20 -0500

config: do not reset pos when braces found

When a brace is found, the config file should not seek back to before
the brace, otherwise the brace will be read multiple times.

Diffstat:
Msway/config.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sway/config.c b/sway/config.c @@ -613,7 +613,9 @@ static int detect_brace(FILE *file) { } } free(line); - fseek(file, pos, SEEK_SET); + if (ret == 0) { + fseek(file, pos, SEEK_SET); + } return ret; }