mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
After reformatting SQL code, unify new lines to Windows line feeds, so the selection's end in SynMemo is correct
This commit is contained in:
@ -63,6 +63,8 @@ begin
|
||||
FOutputCode := FormatSqlOnlineSqlformatOrg(FInputCode);
|
||||
end;
|
||||
end;
|
||||
// Unify line breaks, so selection end will be correct:
|
||||
FOutputCode := fixNewlines(FOutputCode);
|
||||
TimeElapsed := GetTickCount64 - StartTime;
|
||||
MainForm.LogSQL(f_('Code reformatted in %s, using formatter %s', [FormatTimeNumber(TimeElapsed/1000, True, 3), '#'+grpReformatter.ItemIndex.ToString]));
|
||||
except
|
||||
|
Reference in New Issue
Block a user