Fixed wrong history prefixes.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 26 Mar 2013 23:17:54 +0000 (00:17 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 26 Mar 2013 23:17:54 +0000 (00:17 +0100)
commitddf244569fd70f1e117cb36941649daf955e4ff1
tree1feca9cd0e9176e2ae2a23c1f4b9bdb8ddf1dc52
parent653f0e3030edab3f8b9c9aea7d9c1018214f046e
Fixed wrong history prefixes.

If the ':' was typed into input box and the history search started and a
history item with :open ... was put into input box, the next history step used
the ':open ' as a new prefix for commands to fill. Now the input is only
processed at the start of the history searching, so that later changes won't
corrupt the printed items.
Also fixed missed first item in stepping forward through the history.
Al least the global variables out of the vb struct where removed to start to
decentralize the data stores and to them from the rest of the application.
src/command.c
src/history.c
src/history.h
src/main.h