From c54566a54522c932887d7ebb29a78bdf477f219d Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 22 Jul 2013 17:23:17 +0200 Subject: [PATCH] Don't handle command and :open history different. The stepping through history via and keys generated different items for ':open' and ':open '. The reason for this was that we looked up the history file to get the item, ':open' entries where collected from command history file where also none url entries are available (like call with shortcuts). Now the history lookup does not distinguish between commands and urls and follows the inspiring example of vim, where ':e ' also lists none processed values like ':e %'. --- src/history.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/history.c b/src/history.c index 8072962..4e08ef6 100644 --- a/src/history.c +++ b/src/history.c @@ -204,13 +204,10 @@ static GList *get_list(const char *input) input_type = vb_get_input_parts(input, &prefix, &suffix); /* get the right history type and command prefix */ - if (input_type == VB_INPUT_OPEN + if (input_type == VB_INPUT_COMMAND + || input_type == VB_INPUT_OPEN || input_type == VB_INPUT_TABOPEN ) { - type = HISTORY_URL; - OVERWRITE_STRING(history.query, suffix); - OVERWRITE_STRING(history.prefix, prefix); - } else if (input_type == VB_INPUT_COMMAND) { type = HISTORY_COMMAND; OVERWRITE_STRING(history.query, suffix); OVERWRITE_STRING(history.prefix, prefix); -- 2.20.1