work save

This commit is contained in:
royqh1979 2021-10-02 09:16:44 +08:00
parent 23b651f0c4
commit 80df4701d6
1 changed files with 1 additions and 1 deletions

View File

@ -1732,7 +1732,7 @@ void Editor::insertCodeSnippet(const QString &code)
auto action = finally([this]{ auto action = finally([this]{
endUpdate(); endUpdate();
}); });
QStringList sl = parseMacros(code); QStringList sl = TextToLines(parseMacros(code));
int lastI=0; int lastI=0;
int spaceCount = GetLeftSpacing( int spaceCount = GetLeftSpacing(
leftSpaces(lineText()),true).length(); leftSpaces(lineText()),true).length();