diff options
author | Daniel Carl <danielcarl@gmx.de> | 2013-03-29 14:21:38 +0100 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2013-03-29 14:21:38 +0100 |
commit | f22afcb2c56c1bd428cf162fd266afd4e658da78 (patch) | |
tree | 768956ce3decc5f7fbb4d51190e2cc8c968cd4af /src/history.h | |
parent | db26d0fe31db81df45d8dcab26016db90c88dcce (diff) |
Changed history stepping to act like in vim.
Now the history isn't wrap searched. The history can only be started in
previous direction. The latest entry in next direction (latest item) is an
empty items so that we print only the prefix into the input box.
Further the g_list_get_nth_data() was removed, because this is slower than
stepping through the list direct via previous and next.
Diffstat (limited to 'src/history.h')
-rw-r--r-- | src/history.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/history.h b/src/history.h index e241597..f2cc7f9 100644 --- a/src/history.h +++ b/src/history.h @@ -31,7 +31,7 @@ typedef enum { void history_cleanup(void); void history_add(HistoryType type, const char* value); GList* history_get_all(HistoryType type); -char* history_get(const char* input, int step); +char* history_get(const char* input, gboolean prev); void history_rewind(void); void history_list_free(GList** list); |