ide: on Evaluate command use selection if available and use word at caret instead (as now)

git-svn-id: trunk@19128 -
This commit is contained in:
paul 2009-03-27 03:53:55 +00:00
parent d7fef7831e
commit c770cd7d3b

View File

@ -1606,8 +1606,10 @@ begin
end;
if (CurDialog is tEvaluateDlg) and (sourceNotebook<>nil)
then begin
tEvaluateDlg(CurDialog).FindText:=
SourceNotebook.GetActiveSE.GetWordAtCurrentCaret;
if SourceNotebook.GetActiveSE.SelectionAvailable then
TEvaluateDlg(CurDialog).FindText := SourceNotebook.GetActiveSE.Selection
else
TEvaluateDlg(CurDialog).FindText := SourceNotebook.GetActiveSE.GetWordAtCurrentCaret;
end;
FDialogs[ADialogType].Show;
end;