From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 2D01228549 for ; Mon, 4 Mar 2024 12:30:32 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1709551832; b=DtfDHBZrfcrKPtZaM34W/yNuBaEm9SzStyXIEEoN9hk3a211N6oL5B6Hm1hz5iRjpiPS4gnfzF HgzlURMztM9k3T0W54ffdGG3s5Bw31Mz8H6uZ2+Z/5jtySf3GLekeV2H2wFMnxLIXq1E6ci2P/ Xv6difarrGVbXNWTg/zsaUgqnvqDmGiIuq4N9f+q0/3Pp9VjwSXQYG+p+jRvOTqv2cXr5Bvrp0 Sf8ft39FtaEnoaIhniTUtbZZC9pawl2kioC+nJf1GKVAVRSY9Hzq3pDRorI11bV5lzvMcvgDBR ZP0N3Uv9Wnb7LOb91N/mrK9fIsPgL/PAAh31TAVClEzj9A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtp-20.smtpout.orange.fr) smtp.remote-ip=80.12.242.20; dkim=pass header.d=orange.fr header.s=t20230301 header.a=rsa-sha256; dmarc=pass header.from=orange.fr; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1709551832; bh=txDpUrG2Hzvej/tTtMLkvk/Z9Tb/C3gAgV0t1yXqQhQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=Lw7dL1vvNkyPOP73CoNVZFrMJ1p1dQ6Np9ctbG3+FWaqkLe4Z+U9m2O7KP3AcV3I/9F+ye1A++ zUh5DDv2LMzM44/5RWdQft3BPD6yfwqnU4/Zi92tiQ9IIO15vTT9llUiBSL03ZWUNkgvf2lna5 5ngLZ64ylCrVSeamGmzdN9s8/Zesswp/EKl1ygP89gRg06HBMYjFdzr0tXCKC9+V6iE6DxL5ha R3NddoUyM0TQt7DGTjqw1g7DmbExRnjjy7Up+kkZR8rahJLg5vm5zUnnL1jqyBHktwTp5QKKbx vfQIY5lOC/k7DHUwkK4zj+xMtEMgwF6CcE4hamuyvWxjTQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=J6t72LttAdNH73WUIptio25Fs/PAIrNANDRX77CqsZ8=; b=Sj1ufcqcje6A0uMsBiwwO9/IiW wKke9pKloLSGe8DCfCgVq2a1cOVSsYu12z7W3VcmhkllZUPbGtwgkpMC8rQ15MGnG8S3u8O+TEWTC QrSJiPFbUllR/T/YWGEyug/PCGXBvjSpDFlQK0qu95OCsdYY2mpm/fl2JHUNqMmHXJuSIcrnLv5Ef Jr8Z+hkpwAXshy6EH6fRIuV7jmciSm5BYwJsZM1mErDnuCf4RPc+tKnitFnfT2YWB2Vg3oHmX6CTz bM7dqhSFHTvMjFWCc2/m9NhSqssdD3LA39syT4Qjlgi4uy4SG+DMixes+FtoV/LAgEivrB9sxaoT/ MZAa7f5g==; Received: by zero.zsh.org with local id 1rh6We-00032M-JL; Mon, 04 Mar 2024 11:30:32 +0000 Authentication-Results: zsh.org; iprev=pass (smtp-20.smtpout.orange.fr) smtp.remote-ip=80.12.242.20; dkim=pass header.d=orange.fr header.s=t20230301 header.a=rsa-sha256; dmarc=pass header.from=orange.fr; arc=none Received: from smtp-20.smtpout.orange.fr ([80.12.242.20]:61043 helo=smtp.smtpout.orange.fr) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1rh6WN-0002kS-Tu; Mon, 04 Mar 2024 11:30:16 +0000 Received: from [192.168.1.46] ([86.235.4.17]) by smtp.orange.fr with ESMTPA id h6WKrX4hDAtnnh6WKr5oOR; Mon, 04 Mar 2024 12:30:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1709551815; bh=J6t72LttAdNH73WUIptio25Fs/PAIrNANDRX77CqsZ8=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=AZad/H+eIBTB4w1H/qUv4lq87U94/cfGlQ6sZ30UZbeLBLEJ88AaP9BUKMp863LQw prL9qk6184l8oCeaUk97ymTIETRMxOjA/3nYxY66bIhaWvlJYdqlIOx/rkxK2QFqLY gCxl8JFCr8Oxsb7PCSbouQ2Xdx36r1WIDTu1lV6Iw3jymQGeJqbp/t/ixtfVcCa0eV skpGhg9T2V1W7I/IW5xBqh9zkdL9tQ+QhaIQ1mrtXVKBT0zrOTWu9ktE/f8KHImi+l /iQFlLpwk8cvArbYl7w7NASTlnrL+bfnwjXeBfhk+eYb2UtfGZQLbLyvdNpJtIPXKw 3m1F3BODKuwHA== X-ME-Helo: [192.168.1.46] X-ME-Auth: c2FteS5kdWxvckBvcmFuZ2UuZnI= X-ME-Date: Mon, 04 Mar 2024 12:30:15 +0100 X-ME-IP: 86.235.4.17 Message-ID: <8a90a759-2853-b6e1-8d9b-5824afbc8f47@orange.fr> Date: Mon, 4 Mar 2024 12:30:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [BUG] complist interactive mode overwrites command line Content-Language: fr, en-US To: Bart Schaefer Cc: zsh-workers@zsh.org References: <90469bbe-acdf-6dad-baaa-fbf3d1e7ed6c@orange.fr> From: Samy Dulor In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 52663 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 04/03/2024 07:33, Bart Schaefer wrote: > % ls Src/utom4te.cache config S > Scripts/ Src/ StartupFiles/ > > This occurred after using right-arrow to select Src from the menu. > % ls > Then use interactive completion to fill in > % ls autom4te.cache config > Then add S and press TAB: > % ls autom4te.cache config S > Then right arrow from Script to Src and end up with the mess above. > > Settings: > bindkey ^I menu-select > MENUMODE=interactive Dammit, I wasn't aware of the 2023 follow-up thread you linked in the previous mail... I'll look into it and on the the issue you just mentionned. However, is it not another bug that the one that concerned me in the first place? (Not that I wouldn't want to spend time on this one too :p) So, trying your test case on the clean Arch repo's zsh package, I noticed that if you don't press on step 3., pressing the arrow will give you this: % ls Src/ Is it really the expected behavior? Would it not be better if it left you with: % ls autom4te.cache config Src/ ? I'm asking since without thinking or looking much into it, I can think of two possible solutions. Also, back at my initial issue and my patch, I noticed I made an assumption that might be wrong about the expected behavior: Marlon's test case from the 2021 thread was: > % touch test{1,2} > % : ; foobar > ^ 1. Type the above line in its entirety. > 2. Place the cursor before the ; > 3. Press Tab. > 4. Press Enter. > % : test1 bar > ^ Completion is written over existing buffer contents. with my patch, he would end up with % : test1 foobar In that case, should the ';' still be present? ie. % : test1; foobar