readd tab completion of history strings, with a few minor tweaks

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2005-06-02 18:41:31 +00:00
parent 1726050ef9
commit 34bdc35d94
5 changed files with 129 additions and 48 deletions

View File

@@ -2915,8 +2915,6 @@ void load_history(void)
* replace history) from oldest to newest. Assume the last
* history entry is a blank line. */
filestruct **history = &search_history;
filestruct **historyage = &searchage;
filestruct **historybot = &searchbot;
char *line = NULL;
size_t buflen = 0;
ssize_t read;
@@ -2928,13 +2926,9 @@ void load_history(void)
}
if (read > 0) {
unsunder(line, read);
update_history(history, historyage, historybot,
line);
} else {
update_history(history, line);
} else
history = &replace_history;
historyage = &replaceage;
historybot = &replacebot;
}
}
fclose(hist);