Don't save mapped commands in history (#130).
authorDaniel Carl <danielcarl@gmx.de>
Sun, 7 Dec 2014 22:12:24 +0000 (23:12 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 7 Dec 2014 23:02:19 +0000 (00:02 +0100)
commit3a1519ac58c8c62c73eb72fbc657855f80ead19d
treef109386ce08c8b63ac2d82cdc03764863db44f62
parent19b457d0f3ca303cf685ba4e3f30a6d8d31f5c03
Don't save mapped commands in history (#130).

If a map causes vimb to run various ex commands or too do a search it's
irritating when these resolved commands are written into history. So a command
is only be written to history, if it's built from typed chars.
At the time the whole history recording is toggled on and off, which is not
what vim does. Maybe it would be better to allow fine gained control which
types of history and also registers are enabled or not.

Now also the command triggered from remote are recorded into history. This
makes sense, because the remote is assumed as normal user input.
src/autocmd.c
src/history.c
src/io.c
src/main.c
src/main.h
src/map.c