From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22196 invoked by alias); 30 Oct 2013 11:30:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18074 Received: (qmail 6433 invoked from network); 30 Oct 2013 11:30:36 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4OOmANozO+w54YyZ4Ssdx4fgPEbQ1t0Ed1i8cRr0XYE=; b=RlHZs5vS1/q3gpMOGzGDsyyPDpV5Yt7cfHPKKYIanhLhgLmSnZwUWpApSVTe3CGL2d AWHo3CqURZb8zFTrDeZmVzalkDZ5LJzIBsxNjgTrcPjmmWXBDud4iX0JHsqYIYTphE10 o1nv8i8Js6NsaBc1rQi2FZqlmPCHYJFFHruxu2ETex9OzlPMMP9OxlSmvENS7PoY8moV SpZm6xjLFcSflsEGsOEPgCm00m5wv0jMCpwWJIyvqOCL9BM1qEgTjta+y9Ekn5d+UtWT hBsBKWZTI2mZHU12w/d4Rn3HsE4fTmLvvOrGXeYo+jmikQCkBSVFh0sFwFbGamTYUu2/ TOTQ== MIME-Version: 1.0 X-Received: by 10.112.51.101 with SMTP id j5mr3106365lbo.17.1383132631885; Wed, 30 Oct 2013 04:30:31 -0700 (PDT) Date: Wed, 30 Oct 2013 09:30:31 -0200 Message-ID: Subject: How to restart zle without invoking 'accept-line'? From: Thiago Padilha To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=001a11336460336c6a04e9f3a931 --001a11336460336c6a04e9f3a931 Content-Type: text/plain; charset=UTF-8 I've written the zsh-autosuggestions widget using 'recursive-edit' as it was needed for updating zle asynchronously with zle -F. Heres the relevant initialization code: autosuggest-start() { autosuggest-resume zle recursive-edit integer rv=$? autosuggest-pause (( rv )) || zle accept-line return rv } zle-line-init() { zle autosuggest-start } This code propagates accept-line to the main zle widget(user presses enter), but how can I handle like ctrl+c which would normally cause zle to restart without executing the command? --001a11336460336c6a04e9f3a931--