* view.c (regexp_search): Don't call save_edit_changes

if there are no changes.
(save_edit_changes): Use messages from ../po/mc.pot.
This commit is contained in:
Andrew V. Samoilov 2002-05-30 13:12:56 +00:00
parent 30eeda0307
commit 320b3cedae
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2002-05-30 Andrew V. Samoilov <kai@cmail.ru>
* view.c (regexp_search): Don't call save_edit_changes
if there are no changes.
(save_edit_changes): Use messages from ../po/mc.pot.
2002-05-27 Andrew V. Samoilov <kai@cmail.ru>
* view.c (save_edit_changes): Handle errors.

View File

@ -386,9 +386,9 @@ save_edit_changes (WView *view)
}
if (fp == -1) {
fp = query_dialog (_(" Error trying to save file. "),
_(" Try again ? "),
2, 3, _("&Yes"), _("&No"), _("&Cancel"));
fp = query_dialog (_(" Save file "),
_(" Error trying to save file. "),
2, 2, _("&Retry"), _("&Cancel"));
if (fp == 0)
fp = -1;
}
@ -1895,7 +1895,8 @@ regexp_search (WView *view, int direction)
/* This is really an F6 key handler */
if (view->hex_mode){
/* Save it without a confirmation prompt */
save_edit_changes(view);
if (view->change_list)
save_edit_changes(view);
return;
}