mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Work around issue #1094: SQL editor silently converts newlines. By showing a popup info, saying that file contains mixed line breaks and they were converted to Windows breaks.
This commit is contained in:
@@ -5487,6 +5487,8 @@ begin
|
||||
else
|
||||
QueryMemoLineBreaks := LineBreaks;
|
||||
end;
|
||||
if QueryMemoLineBreaks = lbsMixed then
|
||||
MessageDlg('This file contains mixed linebreaks. They have been converted to Windows linebreaks (CR+LF).', mtInformation, [mbOK], 0);
|
||||
SynMemoQuery.SelText := filecontent;
|
||||
SynMemoQuery.SelStart := SynMemoQuery.SelEnd;
|
||||
SynMemoQuery.EndUpdate;
|
||||
|
||||
Reference in New Issue
Block a user