summaryrefslogtreecommitdiff
path: root/src/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/main.c')
-rw-r--r--src/main/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/main.c b/src/main/main.c
index 2e2df58..70c62a3 100644
--- a/src/main/main.c
+++ b/src/main/main.c
@@ -391,6 +391,11 @@ int main(int argc, char *argv[]) {
needs_render = true;
}
+ if (buffers_num_buffers(&buflist) == 0) {
+ running = false;
+ continue;
+ }
+
// TODO: maybe this should be hidden behind something
// The placement is correct though.
buffers_for_each(&buflist, clear_buffer_props, NULL);