still more cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2507 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-05-14 22:44:16 +00:00
parent 6d39f4ba66
commit e781ddf3b1
2 changed files with 3 additions and 2 deletions

View File

@ -2049,7 +2049,7 @@ char **username_tab_completion(const char *buf, size_t *num_matches,
return 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 :> */ * worried about executables, only filenames :> */
char **cwd_tab_completion(const char *buf, size_t *num_matches, size_t char **cwd_tab_completion(const char *buf, size_t *num_matches, size_t
buflen) buflen)

View File

@ -2502,7 +2502,8 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def,
#ifndef NANO_SMALL #ifndef NANO_SMALL
/* Tab history completion. */ /* Tab history completion. */
if (history_list != NULL) { if (history_list != NULL) {
if (!complete || last_kbinput != NANO_TAB_KEY) { if (complete == NULL ||
last_kbinput != NANO_TAB_KEY) {
history_list->current = history_list->current =
(historytype *)history_list; (historytype *)history_list;
history_list->len = strlen(answer); history_list->len = strlen(answer);