From 1cc98685679f9589d4f7d8c61ceae62cef4d0c52 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Wed, 15 Nov 2023 14:57:32 +0100 Subject: [PATCH] Input: fix last line missing --- src/input.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input.cpp b/src/input.cpp index 3eee323..e9bdebd 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -23,6 +23,7 @@ vector get_input() { int n = buffer.length(); if (n >= 2 && buffer[n-1] == ';' && buffer[n-2] == ';') { + input.push_back(buffer); buffer[n-1] = '\0'; break; }