diff options
author | Ian Fan <ianfan0@gmail.com> | 2019-01-12 01:25:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-12 01:25:44 +0000 |
commit | d256182f492c3d8a6803fa2a5880b1283fbe1e4c (patch) | |
tree | f528497ac94d46cff91be9ae9824a84cf968f8b5 /sway/config.c | |
parent | swaylock: Add caps lock state to indicator (diff) | |
parent | config: do not reset pos when braces found (diff) | |
download | sway-d256182f492c3d8a6803fa2a5880b1283fbe1e4c.tar.gz sway-d256182f492c3d8a6803fa2a5880b1283fbe1e4c.tar.zst sway-d256182f492c3d8a6803fa2a5880b1283fbe1e4c.zip |
Merge pull request #3411 from RedSoxFan/fix-brace-detect-seeking
config: do not reset pos when braces found
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index ea9f23dd..26d22842 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -613,7 +613,9 @@ static int detect_brace(FILE *file) { | |||
613 | } | 613 | } |
614 | } | 614 | } |
615 | free(line); | 615 | free(line); |
616 | fseek(file, pos, SEEK_SET); | 616 | if (ret == 0) { |
617 | fseek(file, pos, SEEK_SET); | ||
618 | } | ||
617 | return ret; | 619 | return ret; |
618 | } | 620 | } |
619 | 621 | ||