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>
Fix bug with segfault when we tried to create new file in an external editor (by pressing shift-F4)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
--with-edit: rename to --with-internal-edit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3020_external_editor_segfault'

* 3020_external_editor_segfault:
  --with-edit: rename to --with-internal-edit.
  Fix bug with segfault when we tried to create new file in an external editor (by pressing shift-F4)
  Ticket #3020: segfault on creating new file in external editor