Allow to escape escape char to in commands (#191).
authorDaniel Carl <danielcarl@gmx.de>
Mon, 16 Mar 2015 21:13:20 +0000 (22:13 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 16 Mar 2015 21:13:20 +0000 (22:13 +0100)
commit74ab62837fa7ab216a1a342e6610cc574ba91ab9
treef74c127f4f5f89cdd59530989ec799b04577a1b4
parent59634fdca8e056c2e2f8c22050bf73011c044d8b
Allow to escape escape char to in commands (#191).

This patch fixes a misbehaviour in the way the escaping is done for commands
given via inputbox or config file. The previous logic for the lhs of a command
used '\' to escape the ' '. But to get a single '\' it's needed to use '\\'.
But the '\\' was not taken as a single backslash.
Now the backslash escapes ' ' as well as '\'. A backslash followed by any
other char is taken as is.
src/ex.c