Fix segfault on config file with invalid commands (#188).
authorDaniel Carl <danielcarl@gmx.de>
Mon, 9 Mar 2015 20:43:37 +0000 (21:43 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 9 Mar 2015 20:46:25 +0000 (21:46 +0100)
commitcb48fe6a7925ef745d973dc24e636dd17eee3c90
tree772f078318e9688134f7af8fa066b0f5bf7bf5fc
parent3d87a151006aa05d25522a30f3dd63e13a62119b
Fix segfault on config file with invalid commands (#188).

In case the file contained invalid commands, this was shown to the user by
using vb_echo() which writes the error message into the inpubox. But this
triggered the already buffer_changed_cb that delegated the changed buffer
event to the current mode.
Long story short, there was no current mode set before which caused the
segfault.
src/main.c