Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _describe and literal \n
- X-seq: zsh-workers 38926
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _describe and literal \n
- Date: Sat, 23 Jul 2016 13:00:59 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=C/anqOOvdu7GS6xFyjByrEPRQzzDMMS66XYQQjjPxhg=; b=nVJO9Me0w9Mw95GbZZ9MFWlFPOHrSAQtQbu3GBOILNlrgeNBid4IjrrS/8JwKt2rlK 5MZOK4yRyUACpae6s5WoE0/ogaY8IB9rvZyJVSC/EqQQIRN7yfpSA2886rQB/BI6h9CO Sb/W1d29BVEvczSkVlnYTVltCysES78hACbtKGskILYD6V6ndqm2GLvGj0HXmvJ9m14p i0vDuUS0/qKenrnUI9IqMu7EDrcrzolHMTD1AeuRgUt48mElu8yYefAkE7SPA3ftMEMM v31nrYj5Lbbsv6ookZleROEvvpQVXatlRjcrFFVyX+hOn5re6rWj8E0YYS6BqIwZu0fg hwFw==
- In-reply-to: <20160723180430.GA22451@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160723180430.GA22451@tarsus.local2>
On Jul 23, 6:04pm, Daniel Shahaf wrote:
}
} Gives:
} [[[
} % f <TAB>
} bar -- lorem\nipsum
} foo -- hello\nworld
} ]]]
}
} Is this fix correct?
Boy, that's a tough one. If the embedded newlines mess up something else,
like for example menuselect keeping track of lines/columns/cursor, then
I'd say this is the closest thing to a correct quick-fix.
On the other hand if the extra newlines are handled correctly, then I'd
say this fix isn't warranted, and it's up to the caller to decide what
is meant when a newline appears in the descriptions.
Ideally the newlines would get noticed and the result would be more like
[[[
% f <TAB>
bar -- lorem
ipsum
foo -- hello
world
]]]
but that seems a tall hill to climb.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author