[gjs: 1/2] console: fix multiline template literals




commit a96213c1364f3389ac5adfa8f810c9589c0dd8d3
Author: Ales Huzik <ahuzik atlassian com>
Date:   Sun Jan 31 03:53:30 2021 +1100

    console: fix multiline template literals

 modules/console.cpp | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/modules/console.cpp b/modules/console.cpp
index 6eab0139..da0b9115 100644
--- a/modules/console.cpp
+++ b/modules/console.cpp
@@ -165,6 +165,7 @@ gjs_console_interact(JSContext *context,
                 break;
             }
             buffer += temp_buf;
+            buffer += "\n";
             g_free(temp_buf);
             lineno++;
         } while (!JS_Utf8BufferIsCompilableUnit(context, global, buffer.c_str(),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]