mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Do not go to start of query if error message did not contain a valid character position. Slightly wrong in r3570.
This commit is contained in:
@@ -2158,10 +2158,9 @@ var
|
||||
ErrorPos := Pos(rx.Match[1], Copy(QueryTab.Memo.Text, SelStart, SIZE_KB));
|
||||
if ErrorPos > 0 then
|
||||
Inc(SelStart, ErrorPos-1);
|
||||
QueryTab.Memo.SelLength := 0;
|
||||
QueryTab.Memo.SelStart := SelStart;
|
||||
end;
|
||||
|
||||
QueryTab.Memo.SelLength := 0;
|
||||
QueryTab.Memo.SelStart := SelStart;
|
||||
end;
|
||||
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user