未验证 提交 90a43623 编写于 作者: S Skylot

fix(gui): wrap long array data (workaround for RSTA hang) (#1266)

上级 4479a3fb
......@@ -647,11 +647,17 @@ public class InsnGen {
}
code.add('{');
int c = insn.getArgsCount();
int wrap = 0;
for (int i = 0; i < c; i++) {
addArg(code, insn.getArg(i), false);
if (i + 1 < c) {
code.add(", ");
}
wrap++;
if (wrap == 1000) {
code.startLine();
wrap = 0;
}
}
code.add('}');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册