mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-27 05:29:27 +03:00
* 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:
parent
30eeda0307
commit
320b3cedae
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user