From e781ddf3b171dc0fc1ca4b19b65f679b5a3eb6ab Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 14 May 2005 22:44:16 +0000 Subject: [PATCH] still more cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2507 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/files.c | 2 +- src/winio.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index 353cd587..d299e242 100644 --- a/src/files.c +++ b/src/files.c @@ -2049,7 +2049,7 @@ char **username_tab_completion(const char *buf, size_t *num_matches, return matches; } -/* This was originally called exe_n_cwd_tab_completion, but we're not +/* This was originally called exe_n_cwd_tab_completion(), but we're not * worried about executables, only filenames :> */ char **cwd_tab_completion(const char *buf, size_t *num_matches, size_t buflen) diff --git a/src/winio.c b/src/winio.c index 0fc84dd1..974d8364 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2502,7 +2502,8 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def, #ifndef NANO_SMALL /* Tab history completion. */ if (history_list != NULL) { - if (!complete || last_kbinput != NANO_TAB_KEY) { + if (complete == NULL || + last_kbinput != NANO_TAB_KEY) { history_list->current = (historytype *)history_list; history_list->len = strlen(answer);