]> git.lizzy.rs Git - linenoise.git/commitdiff
linenosePrompt() -> linenoiseEdit().
authorantirez <antirez@gmail.com>
Tue, 5 Feb 2013 18:34:10 +0000 (19:34 +0100)
committerSteve Bennett <steveb@workware.net.au>
Tue, 26 Feb 2013 04:04:07 +0000 (14:04 +1000)
linenoise.c

index 3a9606cee645da3a70b45ed1a417f96c14ff40d3..230711b5b8c8bdd24d1df367be8bd0743aae77e6 100644 (file)
@@ -1082,7 +1082,7 @@ void linenoiseAddCompletion(linenoiseCompletions *lc, const char *str) {
 
 #endif
 
-static int linenoisePrompt(struct current *current) {
+static int linenoiseEdit(struct current *current) {
     int history_index = 0;
 
     /* The latest history entry is always our current buffer, that
@@ -1421,7 +1421,7 @@ char *linenoise(const char *prompt)
         current.prompt = prompt;
         current.capture = NULL;
 
-        count = linenoisePrompt(&current);
+        count = linenoiseEdit(&current);
 
         disableRawMode(&current);
         printf("\n");