mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #1482: text editor dialog and customize highlighter dialog
This commit is contained in:
@ -8,7 +8,7 @@ uses
|
||||
SysUtils, Classes, Controls, Forms, Dialogs, StdCtrls,
|
||||
ExtCtrls, SynEdit, SynEditTypes, laz.VirtualTrees, RegExpr,
|
||||
SynEditRegexSearch, SynEditMiscClasses, SynEditSearch, extra_controls,
|
||||
Menus{, texteditor};
|
||||
Menus, texteditor;
|
||||
|
||||
type
|
||||
TfrmSearchReplace = class(TExtForm)
|
||||
@ -123,7 +123,7 @@ begin
|
||||
AnySynMemo := MainForm.ActiveSynMemo(True);
|
||||
if Assigned(AnySynMemo) then begin
|
||||
IsEditorWritable := not AnySynMemo.ReadOnly; // Support views and procedure editors
|
||||
IsGridTextEditor := False; //GetParentForm(AnySynMemo) is TfrmTextEditor; // Support grid text editor, read-only or not
|
||||
IsGridTextEditor := GetParentForm(AnySynMemo) is TfrmTextEditor; // Support grid text editor, read-only or not
|
||||
if IsEditorWritable or IsGridTextEditor then
|
||||
UsedSynMemo := AnySynMemo;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user