From 221440a23523890aefbcb01dab4df00169061bf6 Mon Sep 17 00:00:00 2001 From: augustin64 <me.git@augustin64.fr> Date: Wed, 15 Nov 2023 16:08:05 +0100 Subject: [PATCH] Add newline before error --- src/errors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/errors.cpp b/src/errors.cpp index 5309ac7..9db6893 100644 --- a/src/errors.cpp +++ b/src/errors.cpp @@ -11,6 +11,7 @@ void pretty_print_error(vector<string> history, CodePosition pos) { if (pos.column == -1 || pos.line == -1) return; + cout << endl; string line = history[pos.line]; printf(BOLD "%4d " RESET , pos.line+1);