From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2610 invoked by alias); 9 May 2016 20:40:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21528 Received: (qmail 13238 invoked from network); 9 May 2016 20:40:52 -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, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1462826040; bh=bL+KUAmYkNJN/2SD5X+eXrMhtT4dXgP2wUJoOAnhMuU=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject; b=JZDLH+lnvanwd8XZU9qV4tQIPq6H2tilP3y5bvs4nOrbCmiYvhHdRvfpNCEfqxL51paYTJYGvblHidwStbJs2oh97euSy3asBoQCgaENKJ9gdeeAff/7KRLkCVJcuFAbWX+VsG/wezy6RgfdLea+gp9KfN8IwCk5MoNKIm99VqKVVzbmAhrFnzaGPpu4JxjiCgNzoRQ6wUuTxw0nQ41XRP+vTkNT2uq5YMB0rD7NQKYjLzbPSU44U0ysEzglbziyHEJOhwGEYiEuogM06Y06pudvvjmyOLTs2IZpYLHOcLOUUAcRD68sdz7glNLDwmvaMjoUfetCk2nxmnWtN84SKQ== X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 448862.96337.bm@omp1013.mail.ne1.yahoo.com X-YMail-OSG: KoYAiYAVM1lFhFy3.cKT8He7i3riDQ9100TxNrOYnUoALuUK2IG_woA9vW0dVRi Epcx_z7neVj8lWExjibcNxQMi5Hl4J5P81QHnpElhSVJLjFQZD.cCDYN7zfjtP6zjq9jLtQMSg.I aaU.Ejmcc691nMu26nnL8jIOdtzWMPy3_jQHK36yLfyD6Msy1S.5iZJQDxu.yaXypTNW_dgMMlVD CTN416tywGydjH100LFeUSFgsmxohRKIqb6CyhkX4f0fICO4Slvlj48Hjwrj8aoSFF71qxhlxOyt GnsoNLxmFB0pWUUdlOxnGuC_yaPIjMamid77EisiwYaXc83Lyg_zwY8N44EOEaBVEXhyhj360dTp D7N999NnVSCPRRi3OGFvdI7KhlJSn7eaZTI5vVEzO__SggzoupT_YLHNqyBZc4aPpMDqGBR2ZsI6 a_cP7qZEWlaKT7nyDBidW2c.Y.XSgWj_lGwUZWvxQtDyw.YHbmS98cPecW27bE34FY6oxTJ8QNVQ C2OCItIMBVmyayeA2hMbYC0Zadw-- Date: Mon, 9 May 2016 20:33:59 +0000 (UTC) From: david sowerby Reply-To: david sowerby To: "Nikolay Aleksandrovich Pavlov (ZyX)" Cc: Message-ID: <2078594247.1137691.1462826039528.JavaMail.yahoo@mail.yahoo.com> Subject: Re: weird behaviour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <2078594247.1137691.1462826039528.JavaMail.yahoo.ref@mail.yahoo.com> Thanks for the quick reply. I did think about the PS1 being a problem. Eve= rything is surrounded with=20 %{ %}. I'll try a more basic prompt and let you know. ---------------= --------------dave=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Morality is doing what is right, no matter what you are told. Religion is doing what you are told, no matter what is right. H.L. Mencken -------------------------------------------- On Mon, 5/9/16, Nikolay Aleksandrovich Pavlov (ZyX) wrot= e: Subject: Re: weird behaviour To: "david sowerby" , "zsh-users@zsh.org" Date: Monday, May 9, 2016, 1:04 PM =20 09.05.2016, 21:40, "david sowerby" : > I noticed recently that when I to complete zsh doubles the first letter of the command eg: > % cd T expands to TV - as expected and the expansion works as normal - unless there are more than one choice when it does this > % ccd /TV/TV/ARROW/ with the multiple dirs shown below as expected > This doesn't affect the command at all, and if I backspace I can't remove the first 'c', and if I then hit nothing happens ie as if the command 'c' isn't there. > I'm using 5.0.7 (Debian 8) in urvxt. I also tested in xterm and get the same result, strangely it doesn't happen on a console. I tried zsh -l in urxvt and get the same double letter result, but in xterm it is fine! Running a bare "compinit" without any extras doesn't make any difference. Has anyone else noticed this? I'm baffled :-/ > ------------------------------dave > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > Morality is doing what is right, no matter what you are told. > Religion is doing what you are told, no matter what is right. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= H.L. Mencken =20 You clearly have some problem with prompt. Most likely you forgot to surround something in PS1 with %{ =E2=80=A6 %} and zsh was no longer able to determine real prompt width. When you do completion in some cases zsh needs to redraw command text in which case it basically does =E2=80=9Cgo to position {just after the place where PS1 ends} and print =E2=80=98cd =E2=80=A6=E2=80=99=E2=80= =9D. If position is wrong you see what you see, but zsh still knows that it needs to run =E2=80=9Ccd =E2=80=A6=E2=80=9D and not =E2=80=9Cccd = =E2=80=A6=E2=80=9D. =20 Except for missing %{ =E2=80=A6 %} there is another possible reason for this: zsh thinks that some character is double width, but terminal emulator thinks it has single width. If this is the case I do not know how to fix this cleanely (it is always possible to construct some hack). =20 In any case you need to check your PS1.