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=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 F411C24D8E for ; Mon, 4 Mar 2024 03:05:57 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1709517957; b=SW5R5nxKXZiuJHYm5bxDKpSePc3Jp+bHN81uASZqj2RO380skFNNFbr95Tv/7Tu+PsnmhXn7nS BW1Lbzoy187cnEafNcMTkxfuabi2yPqhy0xkQZsW6tuttPCftKG+NXdaN5pGgdbfmn1H1wngDM 5hV6qSfFqKpQ12NLkf25srK0uPsCwxB+bmF9tFEJ/o5W7e67gDT4vLLHjixfOs+N7jNnmEuS27 I35lrwYSWtcJO47yK75E0a0+n/4GvXJ/lahOeZfQeDzPDJXWI3mkSGxtC50zQhYuyQpAcaavqc JD4IN+gDTYN+UjKF844TcUAnWATvicEmbPqYkrPhuPB7bA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 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=1709517957; bh=07UALnkyt5twKQAVjFROkvQwV3Wbhmad+EktYgsQn0w=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=Pt3yKakztf+IhvJOY3tCnROpVCunPKeLyjMb6Rrd8+Y5xhR0KMqBOwuDXHyio4jS9PwkGaRPcL ZGpGcvhBh+8hMbzO/XCa44kk7H3t1DkruwqHrZuR7Pfm5WI+ZX1tN29jdU2ooCG9lc++NzSGkv GuYbvZ3PZgc7MzzQBg3G33UY9bG28BtHJ/l+cGXoxJteg1ogYD93DZa0njU5B1NhxcCV0H+fD/ Gpneadv7ZkvdWHWvjNnS9lukQSbJVTRLOyP/Vbr93UFDYyg+6YZp7WTs1vCMmoxjeeq1naYPnR F4D779wQKQ4LmvA4UuT0sClVYkdf/SEIM2k3LPHdj2bHeQ==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=07UALnkyt5twKQAVjFROkvQwV3Wbhmad+EktYgsQn0w=; b=Ybt009EpmiTt6Mt0AWZEGxCnJh tAlPrCzDpaFi8K6o00khZa+JL7EymnEWLxUpEjID4fPty1q4kCDmuS+sk5zTU0MVyFnkVrVIDGHZu iDFPnd9FRul6XnnuljfXrTJGXm+k7sdVFhcMnxfQnUiJ4wIQ4QP9FC4/DosdwNOkm6IloFm+HRBcd drCScmt/0s5CLTMy/S/vAd6j5BX5iTFvrKYCQU/380DUEjwtfLH2/fwBBeq38cTPTEZ0onoCvk3sS lo/zDi6rW1H8s/befyObmkPg9w9T9vW1j+UtNJy0eGHE/fL+pGzu+swTClKFwp4uGBUvkx0yj6mLv tEydLPbQ==; Received: by zero.zsh.org with local id 1rgxiG-000AQ3-G3; Mon, 04 Mar 2024 02:05:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f41.google.com ([209.85.218.41]:55584) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rgxhz-000A5u-8I; Mon, 04 Mar 2024 02:05:40 +0000 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a452877ddcaso67240966b.3 for ; Sun, 03 Mar 2024 18:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1709517938; x=1710122738; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=07UALnkyt5twKQAVjFROkvQwV3Wbhmad+EktYgsQn0w=; b=UfON7ePDMSvHnm5o1FKBJptSjriUWdA3g9wnTafx4U8KR0BMvBY8alBTsAHfqlJluS PiDj0pUg0hgLyXi4N6qE0ZYSdDoSUFAUolfov46KQP4YWISYqXnpdFJDV8ejHdjq2EBd ipdkBE61e5Eo2IrbF57jmtzgb12HcNJrdYxi77AWsoanNRRIpWJ2GVvJAf1pCKInt6QW cK+vrVmMNl0ESXTtFvH8iTcnhzJ/010m4EOp2LVH9su426sTZdGWcyZiwnIQOwAWP26K NKBwTD9LIzPJqmtQLvPZEC2cxyyl45ssQ14Hpx6IBmZs3a5zf5eMaLMdnRB4WANqZOpg l2Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709517938; x=1710122738; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=07UALnkyt5twKQAVjFROkvQwV3Wbhmad+EktYgsQn0w=; b=P/8gHXfXnPN3NWBUvMND2CtftQ+fFyGat3DXSrMifS4HI+32wsYggGksqVfK0e+Rjr YP/S/F8fGaLNX+0XuDETXVWMlknW1ZTtioRUZWTcXqOmfeaiW2mF2/DufqskIaBqrRYX ux9zIlH8SQQEerNr+lvVfFenAT3P3ez0fuf2u12LMvOcSTtD9i+/h3EsB/btWVR8mVcQ QDEI3MwTi6mIXFYg8Ry+TeIq+G7tyEUZSWcMvrsZ7I7aiOAuai+FnJ6EO1Q9PAiQBNxw Izi5xPdkMIIEgcKuKVMBvx47VRvi3NeW3+rvXvHyYm3LwqvooqRycoQuPz1+4UovL6B6 0/VA== X-Gm-Message-State: AOJu0YyKiLZ36padxfUkW45mbxwlmjb6/lp0UEUEdYn1v05Bg21ar9MK +rVcG7oXwOyof5tbGn/h+LqIZdOyj/VF1tF0es8gxvQmcW4g2ILmFbAoeRA7ysGGO+Fh7ULEROk StH5VZaTOJldS6QbZVCeSSRhdjDqJv9OCyKM6vy1ThEphYMOhnw== X-Google-Smtp-Source: AGHT+IHK0vbNVi2OGkjXlz7bAfO+MwQ5+zkpEFUlF5DfsQmDlylNgEj+BmgVfYCuxFEIM4Udr85l/cdM/KTHpkxCi4g= X-Received: by 2002:a17:906:1356:b0:a45:d6f:2c63 with SMTP id x22-20020a170906135600b00a450d6f2c63mr1759309ejb.22.1709517938348; Sun, 03 Mar 2024 18:05:38 -0800 (PST) MIME-Version: 1.0 References: <90469bbe-acdf-6dad-baaa-fbf3d1e7ed6c@orange.fr> In-Reply-To: <90469bbe-acdf-6dad-baaa-fbf3d1e7ed6c@orange.fr> From: Bart Schaefer Date: Sun, 3 Mar 2024 18:05:27 -0800 Message-ID: Subject: Re: [BUG] complist interactive mode overwrites command line To: Samy Dulor Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52658 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 Sun, Mar 3, 2024 at 5:44=E2=80=AFPM Samy Dulor wr= ote: > > So I just tried fixing it by correcting the values in minfo when domenuse= lect restores the command line content, Yours may be the one combination I did not try, in the thread ending here: https://www.zsh.org/mla/workers/2023/msg01041.html (workers/52312) The real test is whether it handles this ... >> Anything that resets the >> appearance of the line -- such as hitting TAB again after accept-line, >> because (as in the "user defined widget doesn't execute suffix >> removal" thread), we are actually still in menu completion at that >> point even though we've left interactive completion -- also loses >> track of the fact that the original line is back the way it was, and >> so minfo.len becomes wrong again and things like navigating the menu >> with the arrow keys start foredel()-ing too much.