yet another cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4087 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2007-04-19 03:53:23 +00:00
parent e53c38274f
commit 238df938f0
1 changed files with 1 additions and 1 deletions

View File

@ -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, /* If the word starts with `~' and there is no slash in the word,
* then try completing this word as a username. */ * then try completing this word as a username. */
if (*place > 0 && *buf == '~') { if (*place > 0 && buf[0] == '~') {
const char *bob = strchr(buf, '/'); const char *bob = strchr(buf, '/');
if (bob == NULL || bob >= buf + *place) if (bob == NULL || bob >= buf + *place)