mirror of https://github.com/MidnightCommander/mc
Ticket #2236: mcview segfaults trying open a compressed man page file.
How to reproduce: mcview /usr/share/man/man1/bash.1.gz Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
044b9eca12
commit
03513734c7
|
@ -204,7 +204,7 @@ expand_format (struct WEdit *edit_widget, char c, gboolean do_quote)
|
|||
fname = panel->dir.list[panel->selected].fname;
|
||||
}
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
else
|
||||
else if (mc_run_mode == MC_RUN_EDITOR)
|
||||
fname = str_unconst (edit_get_file_name (edit_widget));
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue