summaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authormarco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-12-22 18:39:13 +0000
committermarco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-12-22 18:39:13 +0000
commitd68070d83ad045bdcadc870365a8b416d97eb989 (patch)
tree69252ce70f4a4b7a1838c5e471542887a954ba73 /ide
parent311656f17e6a2221ba77f2b5a80248a99637161d (diff)
downloadfpc-d68070d83ad045bdcadc870365a8b416d97eb989.tar.gz
* Modified hint for search/replace again to show what will be done. bug 0010715
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16613 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'ide')
-rw-r--r--ide/fphelp.pas10
1 files changed, 8 insertions, 2 deletions
diff --git a/ide/fphelp.pas b/ide/fphelp.pas
index 3f0f382926..ac300ffe72 100644
--- a/ide/fphelp.pas
+++ b/ide/fphelp.pas
@@ -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;