* Modified hint for search/replace again to show what will be done. bug #0010715

git-svn-id: trunk@16613 -
This commit is contained in:
marco 2010-12-22 18:39:13 +00:00
parent cd1f8e14f4
commit eed9b88f20

View File

@ -124,7 +124,8 @@ const
hint_searchmenu = 'Text and symbols search commands';
hint_searchfind = 'Search for text';
hint_searchreplace = 'Search for text and replace it with new text';
hint_searchagain = 'Repeat the last Search or Replace command';
hint_replaceagain = 'Repeat the last Replace command (%s with %s)';
hint_searchagain = 'Repeat the last Search command (%s)';
hint_gotoline = 'Move the cursor to a specified line number';
hint_objects = 'Open a browser displaying all objects in the program';
hint_modules = 'Open a browser displaying all modules of the program';
@ -286,7 +287,12 @@ begin
hcSearchMenu : S:=hint_searchmenu;
hcFind : S:=hint_searchfind;
hcReplace : S:=hint_searchreplace;
hcSearchAgain : S:=hint_searchagain;
hcSearchAgain : begin
if (FindFlags and ffDoReplace)<>0 then
s:=formatstrstr2(hint_replaceagain,findstr,WEditor.replacestr)
else
s:=formatstrstr(hint_searchagain,findstr);
end;
hcGotoLine : S:=hint_gotoline;
hcObjects : S:=hint_objects;
hcModules : S:=hint_modules;