On 5 March 2012 12:58, Romain Francoise <rfranco...@debian.org> wrote:
> Hi,
>
> Since OpenBSD patchset #951, backslash at end-of-line is treated specially
> to allow line continuation so the screen-keys.conf example file needs to
> protect it:
>
> diff --git a/examples/screen-keys.conf b/examples/screen-keys.conf
> index 4e98fd7..6489774 100644
> --- a/examples/screen-keys.conf
> +++ b/examples/screen-keys.conf
> @@ -72,7 +72,7 @@ unbind w
>  bind w list-windows
>
>  # quit \
> -unbind \
> +unbind \ # protect backslash

While this will work, I do not like the way you've done this.  Look at cfg.c:

if (len > 0 && line[len - 1] == '\\') {

Hence, rather than relying on the comment to remain to protect this --
I would simply quote the backslash as in:

unbind '\'

... which will satisfy the continuation check above.  Note also this
should probably make it in to the documentation at some level if it
isn't already -- I've not checked.

-- Thomas Adam

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to