Skip to content
Snippets Groups Projects

Knsupdate with libedit

Merged Daniel Salzman requested to merge knsupdate-libedit into master
Viewing commit 675bad8d
Show latest version
3 files
+ 3
4
Preferences
Compare changes
Files
3
@@ -22,7 +22,6 @@
#include "utils/knsupdate/knsupdate_exec.h"
#include "utils/knsupdate/knsupdate_interactive.h"
#define PROGRAM_NAME "knsupdate"
#define HISTORY_FILE ".knsupdate_history"
static char *prompt(EditLine *el)
@@ -90,7 +89,7 @@ static unsigned char complete(EditLine *el, int ch)
// Find the command descriptor.
const char **desc = knsupdate_cmd_array;
while (*desc != NULL && strcmp((*desc) + 1, argv[0]) != 0) {
(*desc)++;
desc++;
}
if (*desc == NULL) {
goto complete_exit;