From: David Lawrence Ramsey Date: Thu, 19 Apr 2007 03:53:23 +0000 (+0000) Subject: yet another cosmetic fix X-Git-Tag: v2.0.5~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=79a1324811c2183f5559f5cc0a1635eeb67bf327;p=nano.git yet another cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4087 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/files.c b/src/files.c index 141b4dea..966c28d6 100644 --- a/src/files.c +++ b/src/files.c @@ -2253,7 +2253,7 @@ char *input_tab(char *buf, bool allow_files, size_t *place, bool /* If the word starts with `~' and there is no slash in the word, * then try completing this word as a username. */ - if (*place > 0 && *buf == '~') { + if (*place > 0 && buf[0] == '~') { const char *bob = strchr(buf, '/'); if (bob == NULL || bob >= buf + *place)