diff options
author | Bernhard R. Link <brlink@debian.org> | 2008-06-15 15:02:03 +0200 |
---|---|---|
committer | Shawn <sabetts@juicebox.(none)> | 2008-10-22 14:24:40 -0700 |
commit | 1e4c576b14025d4e16e09110c31b1dec5dac85b9 (patch) | |
tree | bcda968ad241db10c30605ce75d7130f69102966 /src/editor.c | |
parent | 4ca186ff04eb611db6b11aa0c06adda7f428d4f3 (diff) | |
download | ratpoison-1e4c576b14025d4e16e09110c31b1dec5dac85b9.zip |
make history expansion an option (switched off by default)
Diffstat (limited to 'src/editor.c')
-rw-r--r-- | src/editor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/editor.c b/src/editor.c index 0623186..23b6e35 100644 --- a/src/editor.c +++ b/src/editor.c @@ -457,6 +457,12 @@ editor_enter (rp_input_line *line) char *expansion; line->buffer[line->length] = '\0'; + + if (!defaults.history_expansion) { + history_add (line->history_id, line->buffer); + return EDIT_DONE; + } + result = history_expand_line (line->history_id, line->buffer, &expansion); PRINT_DEBUG (("History Expansion - result: %d\n", result)); |