summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-08-07 12:50:52 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-11 15:32:48 +0100
commit0c4ea38ef84d990eb531267c980e2b90fe6a6f3a (patch)
tree0a1ec5713b8f4eea19f1c282ef2c16e0cfa681e8 /src/input.c
parent8511dc94fc96bd5ad2ece8d730d9a9149859558a (diff)
downloadratpoison-0c4ea38ef84d990eb531267c980e2b90fe6a6f3a.zip
Introduce multiple completion styles.
The default, legacy style is named BASIC. A new completion style named SUBSTRING is added. Use SUBSTRING for window name completion in select command. Use BASIC everywhere else.
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input.c b/src/input.c
index 9bc0347..51443e8 100644
--- a/src/input.c
+++ b/src/input.c
@@ -561,12 +561,12 @@ ring_bell (void)
char *
get_input (char *prompt, int history_id, completion_fn fn)
{
- return get_more_input (prompt, "", history_id, fn);
+ return get_more_input (prompt, "", history_id, BASIC, fn);
}
char *
get_more_input (char *prompt, char *preinput, int history_id,
- completion_fn compl_fn)
+ enum completion_styles style, completion_fn compl_fn)
{
/* Emacs 21 uses a 513 byte string to store the keysym name. */
char keysym_buf[513];
@@ -582,7 +582,7 @@ get_more_input (char *prompt, char *preinput, int history_id,
history_reset();
/* Create our line structure */
- line = input_line_new (prompt, preinput, history_id, compl_fn);
+ line = input_line_new (prompt, preinput, history_id, style, compl_fn);
/* We don't want to draw overtop of the program bar. */
hide_bar (s);