paint: console fixes

This commit is contained in:
luboslenco
2026-07-30 12:18:59 +02:00
parent 6fff6d08d5
commit 4a6e64a7cd
+3 -2
View File
@@ -17,8 +17,9 @@ void tab_console_draw_export_on_file_picked(char *path) {
void tab_console_run_done(char *s) {
console_log(tr("Script updated."));
if (starts_with(s, "```c")) {
s = substring(s, 5, string_length(s) - 4);
i32 i = string_index_of(s, "```c");
if (i >= 0) {
s = substring(s, i + 5, string_length(s) - 4);
}
tab_scripts_get();