# HG changeset patch # User zas_ # Date 1211363432 0 # Node ID d8a88f279aca3f11e87c3a571f2e2251944cb535 # Parent ab4162fa9209cdaa9ca4001e18c766260e0d8c54 Use expand_tilde() instead of simple concatenation, it allows correct expansion of ~user as well as ~dir. diff -r ab4162fa9209 -r d8a88f279aca src/ui_tabcomp.c --- a/src/ui_tabcomp.c Wed May 21 09:30:53 2008 +0000 +++ b/src/ui_tabcomp.c Wed May 21 09:50:32 2008 +0000 @@ -152,7 +152,7 @@ if (text[0] == '~') { gchar *t = text; - text = g_strconcat(homedir(), t + 1, NULL); + text = expand_tilde(text); g_free(t); } @@ -172,7 +172,7 @@ if (text[0] == '~') { gchar *t = text; - text = g_strconcat(homedir(), t + 1, NULL); + text = expand_tilde(text); g_free(t); } @@ -361,7 +361,7 @@ /* home dir expansion */ if (entry_text[0] == '~') { - entry_dir = g_strconcat(homedir(), entry_text + 1, NULL); + entry_dir = expand_tilde(entry_text); home_exp = TRUE; } else