From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12331 invoked by alias); 18 Nov 2014 04:52:17 -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: 33705 Received: (qmail 22545 invoked from network); 18 Nov 2014 04:52:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,RCVD_IN_BRBL_LASTEXT, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: PATCH: key delays in zle tests (was fix vi-indent and vi-swap-case) From: "Jun T." In-Reply-To: <28829.1416183899@thecus.kiddle.eu> Date: Tue, 18 Nov 2014 13:09:29 +0900 Content-Transfer-Encoding: 7bit Message-Id: <61C04781-0488-43AA-B773-C9CA6B77219E@kba.biglobe.ne.jp> References: <4968.1416034252@thecus.kiddle.eu> <28829.1416183899@thecus.kiddle.eu> To: "zsh-workers@zsh.org" X-Mailer: Apple Mail (2.1510) X-Biglobe-Spnum: 49473 X02zlevi.ztst now fails on MacOSX and FreeBSD as follows. Increasing the timeout in 'read -t 0.011' didn't work. *** 1,3 **** ! BUFFER: i ! ! CURSOR: 2 --- 1,2 ---- ! BUFFER: aIo ! CURSOR: 3 Test ./X02zlevi.ztst failed: output differs from expected as shown above for: zletest $'\e' $'~aI\e' $'~o\e' \~ Was testing: swap case on a blank line The following simple workaround seems to work. If this is applied the delay by 'read -t ...' is not necessary (on Mac, FreeBSD and Linux). diff --git a/Test/comptest b/Test/comptest index c67237a..f23d813 100644 --- a/Test/comptest +++ b/Test/comptest @@ -89,6 +89,7 @@ bindkey "^D" list-choices-with-report bindkey "^Z" comp-finish bindkey "^X" zle-finish bindkey -a "^X" zle-finish +bindkey -r "\E~" ' }