From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14643 invoked by alias); 4 Dec 2017 22:51:11 -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: 42075 Received: (qmail 9213 invoked by uid 1010); 4 Dec 2017 22:51:11 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f177.google.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(209.85.217.177):SA:0(-1.9/5.0):. Processed in 1.481777 secs); 04 Dec 2017 22:51:11 -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,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dhtehennepe@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=w6N9GHJ7WebgxLzYMZluKoBtlFAUFGKv9/IjqNUcVyk=; b=udF3E5IIAWy993NR7dl5iCfBp2PgEJNwDDNnS0yGh8h1TYVKyzamHUNZgN450lgTpm dMYRtcvRF7/TnIdbWnIGMmVYVTRcoIIab7a8yHTC/mfIQOV17GFbnYFVFao3B3D+YeZG op14JlaHe0cE1zbt3JhmIUybLAti4+E7N1M0klbu+vva7O15e+tfq0y7S33i/Y5kM9LG DPxBJr3YRguDq6aDyaB9CUerkR0onAVwim4ahBpsFkYc7fwsUuY2qaJdpcLPonjWj5F5 o2Iv+r1BHx0/EGWw00vUfRamDDeSMxEbmaWlYtvlv89QXy+VBGtOxZyP3KhcpAYj9Gpo O3uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=w6N9GHJ7WebgxLzYMZluKoBtlFAUFGKv9/IjqNUcVyk=; b=kCeU7QgdtxaUN0q2LNfY+z5SjraIzIMzCUwYQBwfBq0w9Wp7xOUMJynBNATHwcMiCP qNH+fFuhLumLJqMVq8d4rTiYXGf7cKwr0a5GO9GohgZvq2pIiVIhIwX92YwRellzVZ/2 R0eSxy/h2F2Crzy5UZm32zr5m9gb9V6Qg9BB5AN/aLTfNseJ4KEPMGLzUpEGLNl1DiiV Oakv50dCLCp+vHv629lOLaj1iySdaDzdTugErtAaPPVrfnjae1/fucqqbhukUBhyhORq 3l7AruY26yCvuAk4sEJ325CdLjR1gxSh1fTbh5FHfEKHjqnKYGJnUWnJbCkjTiI7MsP5 hEww== X-Gm-Message-State: AKGB3mKgScPgk1eoBhhvirDgf8fDRXOcODQSDrhSBs/A7+nWruIVPEBg M+O6HRQ+gzv4rcpEAZPr64fRDqOqJU4AHT9tFexEIQ== X-Google-Smtp-Source: AGs4zMZeI1P/DScHFz/4Wf7s09TsGbu/k6dwRXsZ0ZE4RvZHwvvX90QW/6QLAOa+AceYHp8KQFqdeBJAc6mZzrFrX6U= X-Received: by 10.176.76.33 with SMTP id l33mr1364546uaf.10.1512427866608; Mon, 04 Dec 2017 14:51:06 -0800 (PST) MIME-Version: 1.0 From: Harm te Hennepe Date: Mon, 04 Dec 2017 22:50:55 +0000 Message-ID: Subject: history-incremental-search-backward string argument regression To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="f403043621ecbcd7b0055f8b8d54" --f403043621ecbcd7b0055f8b8d54 Content-Type: text/plain; charset="UTF-8" Hi, I was trying to let ^r prefill the incremental search minibuffer with the current buffer contents. According to the manual: --- When called from a widget function by the zle command, the incremental search commands can take a string argument. This will be treated as a string of keys, as for arguments to the bindkey and used as initial input for the command. Any characters in the string which are unused by the incremental search will be silently ignored. For example, zle history-incremental-search-backward forceps search backwards for forceps, leaving the minibuffer containing the string `forceps'. --- I've created a widget calling this, but the minibuffer stayed empty. When I manually type something into the minibuffer, it does the usual search, but when I then press ^r again to find the next result, I get an empty minibuffer again, instead of the next result. zsh 5.2 (x86_64-ubuntu-linux-gnu) (Ubuntu 17.10 default): broken zsh 5.4.2-dev-0 (x86_64-unknown-linux-gnu) (newest git on Ubuntu 17.10): broken zsh 4.3.11 (x86_64-redhat-linux-gnu) (CentOS 6.4): WORKS Harm --f403043621ecbcd7b0055f8b8d54--