move cursor to end of log buffer before inserting new text
This commit is contained in:
@ -988,6 +988,7 @@ void LammpsGui::logupdate()
|
||||
if (logwindow) {
|
||||
const auto text = capturer->GetChunk();
|
||||
if (text.size() > 0) {
|
||||
logwindow->moveCursor(QTextCursor::End);
|
||||
logwindow->insertPlainText(text.c_str());
|
||||
logwindow->moveCursor(QTextCursor::End);
|
||||
logwindow->textCursor().deleteChar();
|
||||
|
||||
Reference in New Issue
Block a user