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>
Этот коммит содержится в:
родитель
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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user