Skip to content

Commit

Permalink
Fix compiler warnings, and add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Jun 12, 2019
1 parent fb2e3ef commit 51e5543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions source/main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1621,9 +1621,6 @@ procedure TMainForm.FormCreate(Sender: TObject);
OldSnippetsDir, CurrentSnippetsDir, TargetSnippet: String;
Files: TStringDynArray;
dti: TDBDatatypeCategoryIndex;
mii: TMenuItemInfo;
MainMenu: hMenu;
Buffer: array[0..79] of Char;
begin
caption := APPNAME;

Expand Down
2 changes: 2 additions & 0 deletions source/texteditor.pas
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ procedure TfrmTextEditor.SetText(text: String);
var
Detected, Item: TMenuItem;
begin
// Apply text string, and detect type of line breaks in it
FDetectedLineBreaks := ScanLineBreaks(text);
Detected := nil;
if FDetectedLineBreaks = lbsNone then
FDetectedLineBreaks := TLineBreaks(AppSettings.ReadInt(asLineBreakStyle));
for Item in popupLinebreaks.Items do begin
Expand Down

0 comments on commit 51e5543

Please sign in to comment.