fix #208 - click a message for goto line broken on windows

This commit is contained in:
Basile Burg 2017-12-05 03:18:37 +01:00
parent f59e2f8b6d
commit 061174fbac
1 changed files with 4 additions and 0 deletions

View File

@ -1076,6 +1076,10 @@ begin
if aMessage.isEmpty then
exit;
rng.init(aMessage);
{$IFDEF WINDOWS}
if (aMessage.length > 3) and (aMessage[2..3] = ':\') then
rng.popFrontN(3);
{$ENDIF}
rng.popUntil(['(', ':'])^.popWhile(['(', ':']);
lne := rng.takeUntil([',', ':', ')', ' ']).yield;
if rng.front in [',', ':'] then