From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16525 invoked by alias); 14 Oct 2017 00:18:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 41881 Received: (qmail 23954 invoked by uid 1010); 14 Oct 2017 00:18:56 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(-2.6/5.0):. Processed in 2.452195 secs); 14 Oct 2017 00:18:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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 == X-ME-Sender: Message-Id: <1507939677.3717869.1138301848.03470D9F@webmail.messagingengine.com> From: Daniel Shahaf To: Marco Hinz , zsh-workers@zsh.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-26fdae60 Subject: Re: [PATCH] edit-command-line breaks arguments with spaces Date: Sat, 14 Oct 2017 00:07:57 +0000 In-Reply-To: <4B40504C-14CC-4EE0-8A53-5CF67C67E37E@gmail.com> 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.