From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17874 invoked by alias); 14 Feb 2016 03:42:26 -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: X-Seq: 37962 Received: (qmail 19342 invoked from network); 14 Feb 2016 03:42:24 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=FUC1k5uq3VcDu/LkMs0Iw9IZHZ0yjYVYQKE2R2MjC7M=; b=PmKTXYdj2MpbLdzaHF0oQBeU9kfEANUGLMlyPu3G3xlEODUSqZNBgRw9kc/d12CU4O BEzFIPcZpvfvyhE2wVTR7qhDOyzJsToSD1kKG7Dnh767cop8KNCTvDGUejmpUY4xnhuh 8RRu5HsJzOWx97cdwMHGdpJQlqCnBjE3Ftlsddc949fxMhXzNTUdXLLqnWomM93KjTxY 4SPiOJLYXqPpRysm659QaYGA93hnU4BjBiTpwxdhvH6/j8JLAvnGnFGGQ2iupK29zSQs fvUU8wfapU4xNQozvyst45qxeb7F76aWJBhCRCE4MW7tRfsZ14EyD7szasUIpwWfrhrb Or4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=FUC1k5uq3VcDu/LkMs0Iw9IZHZ0yjYVYQKE2R2MjC7M=; b=lple/WVUlO1X5tPYbyMfYRT6QKofHvgzOA4sDpYIM3zkMFMoGD74WZ0Qq4fDP+RUJV NQNtlAs5hBV5WecqJ2FHx5icPdhO8QqsCCEB/m1YMv5IYyyM9xZxNSs2FupB+XUdVFy8 6wJduunpnbIWvli8WPJZSRLnVC9oPHofV2hX7RBOrtqQw5Ny+e+w+uV5skr6WjqBI5Gi Hm8F/l8bM8+kQyL6YGeXb5H1SgiqjQN2e3EYLu20+HtBIWlebn/mJiwDFvdmXDA6HBmS hipvUlayK9RmLqD7cS30TZPMa2beIgEgrpHx+OdlkVi9HMVsygKCmkkRg8xCrlx9yPxG 5wFQ== X-Gm-Message-State: AG10YOT06cBB0sOiBUl4cHxS39JGlb8ZJwkDzgSB25aTkhqZxgOJlXhjyDFoYnmlBiSpkP8fgbSCu78RyubiFg== X-Received: by 10.60.62.243 with SMTP id b19mr7492222oes.28.1455421341853; Sat, 13 Feb 2016 19:42:21 -0800 (PST) MIME-Version: 1.0 From: Eric Freese Date: Sat, 13 Feb 2016 20:42:02 -0700 Message-ID: Subject: Bug in bracketed-paste-magic? To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=001a11c24cee146f67052bb2b028 --001a11c24cee146f67052bb2b028 Content-Type: text/plain; charset=UTF-8 Hi, I'm developing an autosuggest plugin at https://github.com/tarruda/zsh-autosuggestions and have been looking into an issue (#102 in that repo) that occurs when bracketed-paste-magic is enabled. I've tracked it down to the `bracketed-paste-magic` function making a call to `zle` without the `-w` flag. It seems to me this is a bug in bracketed-paste-magic- that it should be using the `-w` flag to set $WIDGET and associated parameters when invoking a possibly user-defined widget. Would adding the `-w` flag here possibly break anything else? I'm not very familiar with the best way to get this patched, but I've forked the repo on GitHub and pushed a commit that adds the `-w` flag. It's available at https://github.com/ericfreese/zsh/commit/ff23295570e477a6f4b4c1c1e0f97eddc277bcd9 The relevant github issue for my plugin: https://github.com/tarruda/zsh-autosuggestions/issues/102 Cheers, Eric Freese P.S. Another concern (though it's really a separate issue) is the `zle undo` later in the file. Shouldn't that be `zle .undo` to avoid any potential problems arising from the `undo` widget being overridden by a user-defined widget? --001a11c24cee146f67052bb2b028--