From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14736 invoked from network); 22 Jul 2022 16:37:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Jul 2022 16:37:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1658507873; b=CdDbNi47E+sCWd+uvcVWpP9viQYh1E8kv0q3XXd6Einu8ceNhCRsNVSvUp+acJ4AQ0KNlw7dTc xYs9+pf8AeQPuL7w2V3+9/M1FKuND/XZ8oWaP4RcaT0osuLLcV+v9kpv9JY0y6z37Esq7IpiSV EtWEWDaLCisP6nwTqk0dMMPC4dhkFiXV5B3O48wEZ+RR7rXe2pnbKSJyxRhikQ7Uf8PaUlS/s6 OxH3ALyWzO781V5JCEhVT1ITxbuZq3+RHlP3gdNxB1Gg5VaRjWASRfq5kidGn8eTCqbLLlCB8E Oje95qHJJTdOpneBWYR36JWZzMW+TTvqhUdnk8tCg/NF3A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f54.google.com) smtp.remote-ip=209.85.208.54; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1658507873; bh=zn9fW3S1KYjczLfpyoGzgHgd6p8+MNaH6TRSb1S0aLU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=DfpOHFfcgydudcUgOCuZaTm4dxhpMqoJexpt+pvrwmc/FRMRaBUVPK42f+fpdeJGGA132Su5m5 BvJekWiL2oOjETOu18LKuZelHHNUDa7p8CbzKgTT9cytneV0U/BYWCP6UtmoceVC0MAc73U+xs QyHb84AKRhyD9xREmRrh5hSgdTjulGG6ETbKeqtAHTF/UHR/tXeIhZoZeFYEmgIEVRHo6DOYL+ E5Hzy38XFTdROo43UjXdKrUYaIWzzfmaegHs8FTgMRzodtE8WC0HbuegD3AxDjQiji1zPym7Ae sOwhQBRlXjBkNBX3GbU7DYDX09z9bg/1ujV1qxX/sx3dDw==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ufFWGFPOS9a0m6u/jT/Kljs64MCLzeS38jaagfVnOq4=; b=qqItgWLEFNGSEzNNcoTwf+6dhJ rNlDuIPNZaOLhr27tPJ3MCuVmHKiu63HtjGh8IxikTIC1I+xXTwB+boCl20IfdHv66271BQUsjSeb uvLoTrsob6wQMgpIXzwxmwSDiWmjNif+zojJN29GhlT/bqGOkC6O/V0gewIRatFVrSdkGviqfYQJ6 CzJeOMv0Pj6fkvckCTEgjONsuMxqrk8Q4e6dBfzFVHUaGRdvRKbINd4JpvwmUGBPqB96zRgm1jXB0 RBrGHrJtBk4ZxqFZ9oU7QI5uuEKChHzEtopgmpkcibQf82AWZ/U5ilnDSm7ttggfGjZt7OZn9lJ5/ zaOZPwsA==; Received: from authenticated user by zero.zsh.org with local id 1oEvex-000MYq-JJ; Fri, 22 Jul 2022 16:37:51 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f54.google.com) smtp.remote-ip=209.85.208.54; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f54.google.com ([209.85.208.54]:38693) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oEvZm-000M6g-OB; Fri, 22 Jul 2022 16:32:31 +0000 Received: by mail-ed1-f54.google.com with SMTP id u12so1468192edd.5 for ; Fri, 22 Jul 2022 09:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=ufFWGFPOS9a0m6u/jT/Kljs64MCLzeS38jaagfVnOq4=; b=tEgWVfkfPx9b6vVTSUdnohmsjDY2AAOMkcJus2TcW7omZ4Axoy4V2+sRwu2a/f+n6d b4PlT63d6GRe4OgB+hQV5tx8FQZLCsVQz6Ge6h396GGM1tDdM4sKj171Xe/StjNx94t2 m2Mw/GJ+u2gh0IfCCBg9jVOd7yGklKYIPrdoC426o5LzZg8aYySj3tUIM4wLLawZuY8D a1oSXpt5dk6hMcjLkyepH1mexprkDtY/G7teTuhN6DCmeAk8BIbb9Woc1QfwuS4sb4vW nU3mEji3mPxf+vk2DxR1O4bdBPOoZIU6EiOIEO8VFujrQfqJwdvP3OGmt1vCKEJ5fkvh Ht8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=ufFWGFPOS9a0m6u/jT/Kljs64MCLzeS38jaagfVnOq4=; b=B95P7F5AkR93eU98nKtIhnwTcxUYuPxePmM/f3vCeDH1Jw/2pkxatBLDXwfndvAMA+ y1RM6HuC37u0bRoJG3bvkbyuZDkZbuEQGw3keKH2/y7yUW1wpaNZ7wlATTE/He9BSWwN U8UIY5qzXCtR/CrLH8Mq/nDsJJF3HlfYosWMx5SpKdvvmdIKvKGnhNG2YvocLmsmj7I/ MBHnBukVH/n6VtbYp3lYajspLGo7GxT4qIq/0yj9vGCZt1yk8OJNWrPauUf8eMzAhHZS ZoE3NfyH3jiz9F9Vst4EzOd7fZ5miXnnPVxfHHfn1V67ZiBukukii2UeAdRujg9i/jEY oOfw== X-Gm-Message-State: AJIora9I5PEIs3DVEJUcxmB/qhMQUNx71LdvQzFlJOVzc4ahYzW6rwc3 QfGlwNe819HAAlumoNuDOhmTtGMS5Jk3MjhE14W4Sw== X-Google-Smtp-Source: AGRyM1snatikuVP0P8OMy6QpS/5dolR2l5u3J0Hpnu7VC+7GyjUPIGc9q4CdmKTQJLKQJFeEfxgGzlU2IEe74H79/iM= X-Received: by 2002:a05:6402:1117:b0:43b:c965:549e with SMTP id u23-20020a056402111700b0043bc965549emr696914edv.366.1658507550116; Fri, 22 Jul 2022 09:32:30 -0700 (PDT) MIME-Version: 1.0 References: <8964126.CDJkKcVGEf.ref@phy-nordri> <2844417.e9J7NaK4W3@phy-nordri> In-Reply-To: <2844417.e9J7NaK4W3@phy-nordri> From: Bart Schaefer Date: Fri, 22 Jul 2022 09:32:18 -0700 Message-ID: Subject: Re: [BUG] complist interactive mode overwrites command line To: Andrea Manenti Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 50422 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 Mon, Jul 18, 2022 at 6:20 AM Andrea Manenti wrote: > > Great work, thanks! I patched it and it works, albeit with a little detail off: > > say I do ([] is the cursor) > > ``` > ls fo[] folder1 > > ls fo[] folder1 > folder2 folder3 ... > > ls folder2/[] folder1 > (so far so good, but if again) > ls folder2/subfolder/[]older2/ folder1 > ``` > > In other words, the thing that was just autocompleted ("older2/") gets repeated at the end. I'm not able to reproduce the above with the minimal configuration from your earlier email. I do get a different odd behavior: % ls fo[] folder1 % ls fo[] folder1 folder1 folder2 folder3 where "folder1" is selected and the "o" in "fo" at the prompt is highlighted in boldface. If accept one of the menu choices (e.g., press Enter): % ls folder1/o[] folder1 I haven't figured out where the highlighting is coming from or why that causes the insertion to occur one character to the left of the cursor.