mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #1250: prevent clearing highlighter's TableNames list in irrelevant events.
This commit is contained in:
@@ -9352,6 +9352,8 @@ var
|
||||
TableNames, ProcNames: TStringList;
|
||||
begin
|
||||
// Tell SQL highlighter about names of tables and procedures in selected database
|
||||
if (ActiveConnection <> Connection) or (Database <> Connection.Database) then
|
||||
Exit;
|
||||
SynSQLSynUsed.TableNames.Clear;
|
||||
SynSQLSynUsed.ProcNames.Clear;
|
||||
if Connection.DbObjectsCached(Database) then begin
|
||||
|
||||
Reference in New Issue
Block a user