* edit/editcmd.c (edit_replace_cmd): Disable scanf-printf replacement

if "Regular expression" is selected. Fix for savannah bug #19333.
This commit is contained in:
Pavel Tsekov 2007-04-27 08:53:50 +00:00
parent 9312932eea
commit fb01c26098
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-04-27 Pavel Tsekov <ptsekov@gmx.net>
* editcmd.c (edit_replace_cmd): Disable scanf-printf replacement
if "Regular expression" is selected. Fix for savannah bug #19333.
2007-02-02 Pavel Roskin <proski@gnu.org>
* edit.h: Make skip_detach_prompt unsigned. Otherwise, it

View File

@ -1967,7 +1967,7 @@ edit_replace_cmd (WEdit *edit, int again)
}
}
if (replace_yes) { /* delete then insert new */
if (replace_scanf || replace_regexp) {
if (replace_scanf) {
char repl_str[MAX_REPL_LEN + 2];
int ret = 0;