a_tty_bind_parse(): trim non-editable bindings once again, reject empty ones..
commit8b1189d417534f2d493c95ceab8003342d0f6373
authorSteffen Nurpmeso <steffen@sdaoden.eu>
Tue, 21 Jan 2020 13:49:48 +0000 (21 14:49 +0100)
committerSteffen Nurpmeso <steffen@sdaoden.eu>
Tue, 21 Jan 2020 13:52:10 +0000 (21 14:52 +0100)
tree7236e6005b49204cec9ca9da0fb1f096eaa695b7
parent4a17872ebf72b4facc5d6464a005fbdcb83443cf
a_tty_bind_parse(): trim non-editable bindings once again, reject empty ones..

The manual states that empty key bindings are rejected, but by
specifiying a non-empty shell-token this yet has been waved
through, for example

  bind base a ' '

Since that effectively results in invoking the default command
this can be seen as an error, whereas it is ok for the editable

  bind base a ' '@

So, in the non-editable case, trim the resulting string once
again, so that it will be seen as a truly empty sequence, if it is.
src/mx/tty.c