diff options
author | Bernhard R. Link <brlink@debian.org> | 2008-06-09 23:50:27 +0200 |
---|---|---|
committer | Shawn <sabetts@juicebox.(none)> | 2008-10-22 14:17:43 -0700 |
commit | d801644502adf42570e9a5b75fcaa013f613fc5a (patch) | |
tree | a30537a038c36c0effc0ab0f6f9f6565a206b558 /src/input.c | |
parent | 22cea909c3d1b695424ef85153917b00bfb1261c (diff) | |
download | ratpoison-d801644502adf42570e9a5b75fcaa013f613fc5a.zip |
define different history types and use them
(implementation does not separate them yet, though)
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input.c b/src/input.c index c92acd8..db36ba7 100644 --- a/src/input.c +++ b/src/input.c @@ -515,13 +515,13 @@ ring_bell (void) } char * -get_input (char *prompt, completion_fn fn) +get_input (char *prompt, int history_id, completion_fn fn) { - return get_more_input (prompt, "", fn); + return get_more_input (prompt, "", history_id, fn); } char * -get_more_input (char *prompt, char *preinput, +get_more_input (char *prompt, char *preinput, int history_id, completion_fn compl_fn) { /* Emacs 21 uses a 513 byte string to store the keysym name. */ @@ -542,7 +542,7 @@ get_more_input (char *prompt, char *preinput, #endif /* HAVE_READLINE_HISTORY_H */ /* Create our line structure */ - line = input_line_new (prompt, preinput, compl_fn); + line = input_line_new (prompt, preinput, history_id, compl_fn); /* We don't want to draw overtop of the program bar. */ hide_bar (s); |