]> git.sur5r.net Git - i3/i3/blobdiff - src/config_parser.c
Fix config validation fail when no new line from end of file
[i3/i3] / src / config_parser.c
index 0f3d33ec0600ca23b56e2e25a1d7e1dd34a6d804..27cdeb93fe571cd5d2869ad4855f9e4e415d8236 100644 (file)
@@ -843,7 +843,7 @@ bool parse_file(const char *f, bool use_nagbar) {
                 break;
             die("Could not read configuration file\n");
         }
-        if (buffer[strlen(buffer) - 1] != '\n') {
+        if (buffer[strlen(buffer) - 1] != '\n' && !feof(fstr)) {
             ELOG("Your line continuation is too long, it exceeds %zd bytes\n", sizeof(buffer));
         }
         continuation = strstr(buffer, "\\\n");