Allow to change input in history lookup.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 22 Jul 2013 17:38:18 +0000 (19:38 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 22 Jul 2013 17:38:18 +0000 (19:38 +0200)
commit27b84ec6ef3e6f2fb8aff1ea13d45d319dcb00bd
tree0726a90fe203c753b9ddc8b0960b76ad0af8c156
parentc54566a54522c932887d7ebb29a78bdf477f219d
Allow to change input in history lookup.

In previous version it does not work to lookup commands like ':r<up>' and
change the input after the history was initialized. This caused none working
lookup if the first attempt did not find any item. For example if ':foo<up>'
did not find any item and the user change the inputbox into ':o<up>' which
should match items, this retrieved also no item.

This patch fixes also none working lookup of set commands like ':set s<up>'.
src/completion.c
src/history.c
src/main.c
src/main.h