This commit is contained in:
寂静的羽夏 2022-08-23 18:39:37 +08:00
parent fea9c6052f
commit 0db3ab4358
1 changed files with 2 additions and 0 deletions

View File

@ -233,11 +233,13 @@ void WingHexAsm::asmCode(QString code) {
USINGCONTROL({
controller.newFile();
controller.insert(0, buffer); // 直接使用 insert 会比 append 更高效一点
controller.moveTo(buffer.size());
});
} else {
USINGCONTROL({
auto pos = reader.currentOffset();
controller.insert(qint64(pos), buffer);
controller.moveTo(qint64(pos + ulong(buffer.size())));
});
}
toast(icon, tr("ASMSuccessfully"));