fix, caret position lost when finding call tip after after left paren failed

This commit is contained in:
Basile Burg 2018-07-09 01:27:49 +02:00
parent e35b4a672a
commit be41ff25e5
1 changed files with 9 additions and 8 deletions

View File

@ -2583,14 +2583,15 @@ begin
for lne in fCallTipStrings do
if lne.isNotEmpty then
str += lne + LineEnding;
if str.isEmpty then
exit;
{$IFDEF WINDOWS}
str := str[1..str.length-2];
{$ELSE}
str := str[1..str.length-1];
{$ENDIF}
showCallTips(str);
if str.isNotEmpty then
begin
{$IFDEF WINDOWS}
str := str[1..str.length-2];
{$ELSE}
str := str[1..str.length-1];
{$ENDIF}
showCallTips(str);
end;
end;
if findOpenParen then
CaretX:=x;