@@ -1451,7 +1451,7 @@ procedure TMainForm.MemoKeyDown(Sender: TObject; var Key: Word;
1451
1451
var HelpFile := GetHelpFile;
1452
1452
if Assigned(HtmlHelp) then begin
1453
1453
HtmlHelp(GetDesktopWindow, PChar(HelpFile), HH_DISPLAY_TOPIC, 0 );
1454
- var S := FActiveMemo.WordAtCursor ;
1454
+ var S := FActiveMemo.WordAtCaret ;
1455
1455
if S <> ' ' then begin
1456
1456
var KLink: THH_AKLINK;
1457
1457
FillChar(KLink, SizeOf(KLink), 0 );
@@ -2998,7 +2998,7 @@ procedure TMainForm.ESelectAllOccurrencesClick(Sender: TObject);
2998
2998
if FActiveMemo.SelEmpty then begin
2999
2999
{ If the selection is empty then SelectAllOccurrences will actually just select
3000
3000
the word at caret which is not what we want, so preselect this word ourselves }
3001
- var Range := FActiveMemo.WordAtCursorRange ;
3001
+ var Range := FActiveMemo.WordAtCaretRange ;
3002
3002
if Range.StartPos <> Range.EndPos then
3003
3003
FActiveMemo.SetSingleSelection(Range.EndPos, Range.StartPos);
3004
3004
end ;
@@ -4017,7 +4017,7 @@ procedure TMainForm.UpdateOccurrenceIndicators(const AMemo: TIDEScintEdit);
4017
4017
Selections := TScintRangeList.Create;
4018
4018
4019
4019
if FOptions.HighlightWordAtCursorOccurrences and (AMemo.CaretVirtualSpace = 0 ) and MainSelSingleLine then begin
4020
- var Word := AMemo.WordAtCursorRange ;
4020
+ var Word := AMemo.WordAtCaretRange ;
4021
4021
if (Word.StartPos <> Word.EndPos) and MainSelection.Within(Word) then begin
4022
4022
var TextToIndicate := AMemo.GetRawTextRange(Word.StartPos, Word.EndPos);
4023
4023
AMemo.GetSelections(Selections); { Gets any additional selections as well }
0 commit comments