From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25691 invoked by alias); 10 Sep 2015 23:24:22 -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: 36485 Received: (qmail 15777 invoked from network); 10 Sep 2015 23:24:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=X4Qa+b9DQFhz6RGnIcAFHuTenRxbk5951XfdOH/AC1s=; b=U3wcq7uxOHpiUg2hmjQZgYZyFcIAvQKMb2Pe9Sy9aucOE26c9Gg6iF0y6mNDzrSNc5 hcnVA6/2f5oN5Ws26xDRFqH6qqftYJhf6TtAjW9/tBsV0iOxBAPBBylLQMgRfj43Jfgm 0dbV1zDEliVaDWcWrpiO2H07rAizsEkDjVoBtWgmxCYYE3GO2h5yk9kbEmCCv/vdVzdV 6uRe8gnDkaYCfWfF6/Pqg0VSRjvLj3/xqAqsHXon3V5FW6yPgQ1eJHTEbCCXrklNWVwh z/aYofOCe7LBEexuTCqroBf50DWEH+LiV0oYYrig6RJ7n+jN1uL5R8YDALnmXPIlOVyg rWkA== X-Gm-Message-State: ALoCoQmpAraUcBB06tR80r0UeVzzCfdh82COHBmNN1P+HxxoqODbYwmHd6qXG3KkIpZix3mTa4J1 X-Received: by 10.182.44.198 with SMTP id g6mr34379656obm.25.1441927459088; Thu, 10 Sep 2015 16:24:19 -0700 (PDT) From: Bart Schaefer Message-Id: <150910162415.ZM3990@torch.brasslantern.com> Date: Thu, 10 Sep 2015 16:24:15 -0700 In-Reply-To: <20150910203527.260abe86@ntlworld.com> Comments: In reply to Peter Stephenson "Re: Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1" (Sep 10, 8:35pm) References: <20150906155751.GD3721@sym.noone.org> <150910073920.ZM21998@torch.brasslantern.com> <20150910145714.GO3721@sym.noone.org> <150910084516.ZM22892@torch.brasslantern.com> <20150910170705.0fbeb302@pwslap01u.europe.root.pri> <150910091649.ZM3715@torch.brasslantern.com> <20150910172840.0a1899f4@pwslap01u.europe.root.pri> <20150910195713.340861cb@ntlworld.com> <20150910203527.260abe86@ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 10, 8:35pm, Peter Stephenson wrote: } } This seems to be getting somewhere, but possibly needs more expert } examination... This diff looks OK, though I'm not sure why you need $ismb ? Is it just a shortcut? (i.e., because if the multibyte character had been bound to something, then .read-command would have consumed it as one $KEYS, so we know it can't match $bpm_inactive) Thinking harder, though ... isn't the only reason that this gets "stuck" because "zle .self-insert-unmeta" blocks waiting for more bytes? Do we really need the loop-within-a-loop given LBUFFER+= instead? Perhaps because the trailing part of the multibyte character might be bound to an active widget? I keep coming back to how much cleaner this would be if .read-command consumed a whole character.