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:
10
src/files.c
10
src/files.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user