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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30184 invoked from network); 22 Feb 2021 16:59:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Feb 2021 16:59:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614013141; b=EEkh3PYCv9qSydkGv83F9Nx4r9oMGPRRY9pDoeNXPXoburBf/iq3sK4QnwWQHENDodX5P1/Tcr Yy+cTnw8lT/0HWHKRw6GXV2Y9Bl0NcKVMXi4z2xc0zRrKAFp/uTayBca3vhkE4DP1Ou51ViuJ0 Ulg5dGm36dAP7vJCW50Zrt7rvhrC7HvRc97tm/8mzS3FHXzEtIbRVcEhST+g4aYph5msOO75lb AN2gafIwQthi4lFHvoljd80L8ha7Sum41LcMu4AMzyP5fMVBYmHjom402t5q+QxHGlEeLzUv5C DqQbIQ38iIMaZ3rBFgU4aVDcKJZ2S5gds398FkTxk77Lpw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtp.vivaldi.net) smtp.remote-ip=31.209.137.12; dkim=pass header.d=vivaldi.net header.s=default header.a=rsa-sha256; dkim=pass header.d=vivaldi.net header.s=default header.a=rsa-sha256; dmarc=pass header.from=vivaldi.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614013141; bh=SYYphWaxA+tysvmlTZGkT3LLoDzeMX7XOAdTzlw6LDE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Message-ID:Date:To:From:Subject:Content-Type: DKIM-Signature:Content-Transfer-Encoding:DKIM-Signature:DKIM-Signature; b=ZpJUiK3GdXMN29PMDYS8JHewRAKAm5EIrRHL/zJjC6DAGA06t/lVJ3ERVqFbieMGBTNN8YajGU 7D84mxo0v8Q7U6zcFIOQMIvpn+erk7TevxaBQ00zXTGQDGTYZIld7fJC5yvwIgrWznwyWDROk5 1rnjuctt7/BLIceZ98Z/fz4dApNqvCJ7JGreDM/51hk6AJvFpZLFhgbxP+Svh+F06sWLaigAdo c7lvMm5O9BiX9U8st1wDAEVb0qWeqwlYnysjAmiEvekHFOAr8GscoDpZZHqdjJZ/NtuWSNk9JM bKV83ZxiXtiTX1bjv9v9OsWyfYCZgYItIOIFalO9fvxHeQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Message-Id:Date:To:From: Subject:Content-Type:Content-Transfer-Encoding:Reply-To:Cc:MIME-Version: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References; bh=cqnZZrvc1GjctnZa+JbPKqSNcpp3MyTFUxKXaUScaTw=; b=PR6auzRpG9YD45K7o8XwhzAWux VOKvCycqQMQibmH3mQZqaNlh4egFfL2dB/J/uc/z9A6rFWwcDoKL83RyG/ok09lydLYowWnRFJcwp 5eEq8U8e0wwTFeDNDU8o3o/6t3ZhYZKyJeuM2aFgko2Tt+a3S9bV4IvYsso3i8phDK1P8gQ/JQ8wO 1vFaF7x/hdRg4IzQsuhvxR0l3u3hkdxv0TVvy2P+7IqrDIqPlhxzY5tsLhI9n1S4jc2Lk/JXP5SE7 1zVFelAFL9T5SP5Cx80RPUE0EMR8dXa7G6We+ZHQGTAcAG5qlalABtCzRJWjOJ4X37dY1lCbQPPjG UcA3UH7A==; Received: from authenticated user by zero.zsh.org with local id 1lEEY0-0008DM-JA; Mon, 22 Feb 2021 16:59:00 +0000 Authentication-Results: zsh.org; iprev=pass (smtp.vivaldi.net) smtp.remote-ip=31.209.137.12; dkim=pass header.d=vivaldi.net header.s=default header.a=rsa-sha256; dkim=pass header.d=vivaldi.net header.s=default header.a=rsa-sha256; dmarc=pass header.from=vivaldi.net; arc=none Received: from smtp.vivaldi.net ([31.209.137.12]:49982) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lEEXX-0007q1-Aw; Mon, 22 Feb 2021 16:58:32 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.vivaldi.net (Postfix) with ESMTP id 406C3BD065 for ; Mon, 22 Feb 2021 16:58:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 406C3BD065 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=default; t=1614013110; bh=cqnZZrvc1GjctnZa+JbPKqSNcpp3MyTFUxKXaUScaTw=; h=Subject:From:To:Date:In-Reply-To:From; b=fBsRcKKMVH4fV9drbIRB/VVggM7kAIPMEmOyXQ03Aq84APeNzKlbq7+63PTQ2NeuK Iqnvk5h6bGNhNpCGxpqHpqRBvg943EcFktHacCT+bWMazIrkVOQ3fnDL26NrKZtKoO w3MRlU0f6ehV9DC/KMpHSP0UTO4sYv2T85DXFtrXjWTZk+fHfvBryYrPlXhe24wV5A 896R5HQi/jzETDG+7BAT2Db6fA7rcAryLJxQ/ifZGMf2XDN5DMhoEI6griwz4+x/OR t8dw+d8cxYhFHe6eT/7jd29Api3cE5/SZKSfRWk20OhKhb6N/EOjZGzVDH0UE9g0Ym 5po02ddUGlLOg== X-Virus-Scanned: Debian amavisd-new at smtp.vivaldi.net Received: from smtp.vivaldi.net ([127.0.0.1]) by localhost (mxo.viv.dc01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W5Drh7n42RIz for ; Mon, 22 Feb 2021 16:58:26 +0000 (UTC) Content-Transfer-Encoding: quoted-printable DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 384D6BD00E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=default; t=1614013106; bh=cqnZZrvc1GjctnZa+JbPKqSNcpp3MyTFUxKXaUScaTw=; h=Subject:From:To:Date:In-Reply-To:From; b=ubC93GAFxKxWrfnVrRAa6k06IR6TEN1iFaqNa6+zr8Re4jSzV9EbIQ19Pgogle2rd dF+CQaKGc1ai/dKIXoj3KX/ys8bEXNhR+tstX8UL5BXywIDHZb6E6XAXNX0LP/b8aE Ip24790gWltpEQw5Id0gJso2Znm+lFbGV9eoBIxHzOLaIoeqtmwvtzDJrt82dCbCkT R2UAJhHxfpOxyFAF1sYnvfjTxapALVZwlzARMh18kheUiKMGdWyWBNh40yLvVH3bxf 4oXRgOiv3Zura5K6lJ0PPNNh34UXZpE2BkippvzkG0C/m1NRDywPOY7665dwpxGUGD dQxW5XuYRyebA== Content-Type: text/plain; charset=UTF-8 Subject: Interactive menu completion bug From: "Paul" To: "Zsh MailingList" Date: Mon, 22 Feb 2021 10:39:47 -0600 Message-Id: In-Reply-To: X-Seq: 26554 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: This is unrelated to the previous bug I mentioned, and apologies if this has been brought forward before. There is a more problematic issue with the menu when in the `interactive` setting. zmodload zsh/complist setopt MENU_COMPLETE zstyle ':completion:*:default' menu yes select interactive autoload -Uz compinit compinit # for demo purposes: touch ~/a{b,c} The following and similar inputs show issues [1]: echo $aliases[=20 echo ~/ab The user finishes the token/word themselves instead of accepting one of the menu's completions. The completer doesn't update the location to insert the new completion. Instead, the new completion is inserted at the original location rather than where it should be. [1]: Demo: https://asciinema.org/a/dZXOf1HGc5zj8AWJ4Ea3lBiGr