mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Ticket #3020: segfault on creating new file in external editor
Fixes for compiling code without warnings and errors when the --disable-editor option is specified Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
3f4397f812
commit
9d081bec5a
@ -790,6 +790,8 @@ do_edit_at_line (const vfs_path_t * what_vpath, gboolean internal, long start_li
|
|||||||
else
|
else
|
||||||
#endif /* USE_INTERNAL_EDIT */
|
#endif /* USE_INTERNAL_EDIT */
|
||||||
{
|
{
|
||||||
|
(void) internal;
|
||||||
|
|
||||||
if (editor == NULL)
|
if (editor == NULL)
|
||||||
{
|
{
|
||||||
editor = getenv ("EDITOR");
|
editor = getenv ("EDITOR");
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
SUBDIRS = . editor filemanager
|
SUBDIRS = . filemanager
|
||||||
|
|
||||||
|
if USE_EDIT
|
||||||
|
SUBDIRS += editor
|
||||||
|
endif
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
$(GLIB_CFLAGS) \
|
$(GLIB_CFLAGS) \
|
||||||
|
Loading…
Reference in New Issue
Block a user