Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] edit-command-line breaks arguments with spaces
- X-seq: zsh-workers 41881
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Marco Hinz <mh.codebro@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [PATCH] edit-command-line breaks arguments with spaces
- Date: Sat, 14 Oct 2017 00:07:57 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=L5xZVH onhUf8b3aAKhSiF7BfIz9lCmHLrC88gznxM8Y=; b=JSFguskB/82/YKphXRkuBk y6SpiR4AIOu7aO13iJHijLhVdP+kr4G+gkWYF2AvHS4WAWED57rRPQ64a+ngpotZ 4T2dKGsJID7tbc554pk5oz8+7iE9AJq3Z8diweaH0Ck3O6X9ty72+VZYyW0ix2v4 2/yda72ylxLSj5tQp05v1PScgohEV+JAK03SBn/xccx4N1hIgJqPJhh8SZuBEqVe 0gWi0LtWh12MyrZuaoIsOXsM13O9JX46z66l+djEZixmzzCYzumMbRdaC9eFU9bF cJLuo1eRaJJGg73iz/D/ofCaBC2Lo8g2X86SI306uQQ8IaH/Szn2Fp3PG7D/o2cg ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=L5xZVH onhUf8b3aAKhSiF7BfIz9lCmHLrC88gznxM8Y=; b=pBimgbW4RmMhxw48ug6GD6 QlDxMOrImC6tcqjU0TFdVVr2dl5J4wyw1IQsYr6SgMk6wA7ilAkyTyw/UTv/Js+c FIVJPOJKSwxz69+jSMl06Bx8v00uw7C/nFfaEOz+IZoHandktPFtDyyNDvmcDJMG SCJMY60ywRdGs/wrGNLvveOSOZIQUsmVbZhmxfIXos18fsMRbd3F22GxU3W7WDIT VyBGfQfReI5CrY6dWp9/eKnZAPNX8GVcq7luXxkuWKk9VGLFOenEfNW9aetVhJHY JiUhT8RgN8TGsg+NDwSETUxBmoq3jUGmhGxhtc3RqjVu+8SjpslzFTo5saJjwCTw ==
- In-reply-to: <4B40504C-14CC-4EE0-8A53-5CF67C67E37E@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <4B40504C-14CC-4EE0-8A53-5CF67C67E37E@gmail.com>
Marco Hinz wrote on Sat, 14 Oct 2017 01:05 +0200:
> diff --git i/Functions/Zle/edit-command-line w/Functions/Zle/edit-command-line
> index 353f2609a..5c82e823a 100644
> --- i/Functions/Zle/edit-command-line
> +++ w/Functions/Zle/edit-command-line
> @@ -22 +22 @@
> - ${=editor} -c "normal! ${byteoffset}go" -- $1;;
> + eval "${editor[@]} -c 'normal! ${byteoffset}go' -- $1";;
> @@ -25,2 +25,2 @@
> - ${=editor} +${#lines}:$((${#lines[-1]} + 1)) $1;;
> - (*) ${=editor} $1;;
> + eval "${editor[@]} +${#lines}:$((${#lines[-1]} + 1)) $1";;
> + (*) eval "${editor[@]} $1";;
LGTM, except that $1 should be changed into ${(q)1} due to the eval.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author