Merge branch '4540_mcedit_macro_deletes_text'

* 4540_mcedit_macro_deletes_text:
  Ticket #4540: mcedit: macro deletes text.
This commit is contained in:
Andrew Borodin 2024-05-25 19:25:34 +03:00
commit 57cf824a51

View File

@ -1821,14 +1821,14 @@ edit_user_menu (WEdit * edit, const char *menu_file, int selected_entry)
if (user_menu_cmd (CONST_WIDGET (edit), menu_file, selected_entry)
&& (mc_stat (block_file_vpath, &status) == 0) && (status.st_size != 0))
{
gboolean rc = FALSE;
gboolean rc = TRUE;
FILE *fd;
/* i.e. we have marked block */
if (mark)
rc = edit_block_delete_cmd (edit);
if (!rc)
if (rc)
{
off_t ins_len;