mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
ide: tooltip evaluation: if codetools can't evaluate full expression then use identifier
git-svn-id: trunk@21944 -
This commit is contained in:
parent
880b4f97b6
commit
351a3caead
@ -13543,10 +13543,10 @@ begin
|
||||
if Identifier = '' then Exit;
|
||||
if SrcEdit.SelectionAvailable and SrcEdit.CaretInSelection(CaretPos) then
|
||||
Expression := SrcEdit.GetText(True)
|
||||
else begin
|
||||
if not CodeToolBoss.ExtractOperand(SrcEdit.CodeBuffer,
|
||||
CaretPos.X,CaretPos.Y,Expression,false) then exit;
|
||||
end;
|
||||
else
|
||||
if not CodeToolBoss.ExtractOperand(SrcEdit.CodeBuffer,
|
||||
CaretPos.X,CaretPos.Y,Expression,false) then
|
||||
Expression := Identifier;
|
||||
//DebugLn(['TMainIDE.OnSrcNotebookShowHintForSource Expr="',Expression,'"']);
|
||||
if not DebugBoss.Evaluate(Expression, DebugEval) or (DebugEval = '') then
|
||||
DebugEval := '???';
|
||||
|
Loading…
Reference in New Issue
Block a user