1
1

Ticket #2398: tilde is not treated as home directory in editor "Save As" dialog.

(edit_get_save_file_as): return file name with expanded tilde.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2010-10-22 14:50:04 +04:00
родитель 9561550d6e
Коммит 8088fe9b66

Просмотреть файл

@ -52,6 +52,7 @@
#include "lib/skin.h"
#include "lib/strutil.h" /* utf string functions */
#include "lib/lock.h"
#include "lib/util.h" /* tilde_expand() */
#include "lib/vfs/mc-vfs/vfs.h"
#include "src/history.h"
@ -557,8 +558,12 @@ edit_get_save_file_as (WEdit * edit)
if (quick_dialog (&Quick_options) != B_CANCEL)
{
char *fname;
edit->lb = cur_lb;
return filename;
fname = tilde_expand (filename);
g_free (filename);
return fname;
}
return NULL;