Merge pull request #6525 from hasse09052/skip-empty-mirb-history

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-05-12 12:59:28 +09:00
committed by GitHub
+3 -1
View File
@@ -607,7 +607,9 @@ main(int argc, char **argv)
}
strcpy(last_code_line, line);
strcat(last_code_line, "\n");
MIRB_ADD_HISTORY(line);
if (strlen(line) > 0) {
MIRB_ADD_HISTORY(line);
}
MIRB_LINE_FREE(line);
#endif