From: david sowerby <d_sowerby@yahoo.com>
To: "Nikolay Aleksandrovich Pavlov (ZyX)" <kp-pav@yandex.ru>
Cc: <zsh-users@zsh.org>
Subject: Re: weird behaviour
Date: Mon, 9 May 2016 20:33:59 +0000 (UTC) [thread overview]
Message-ID: <2078594247.1137691.1462826039528.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <2078594247.1137691.1462826039528.JavaMail.yahoo.ref@mail.yahoo.com>
Thanks for the quick reply. I did think about the PS1 being a problem. Everything is surrounded with
%{ %}. I'll try a more basic prompt and let you know. -----------------------------dave
====================================================
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) <kp-pav@yandex.ru> wrote:
Subject: Re: weird behaviour
To: "david sowerby" <d_sowerby@yahoo.com>, "zsh-users@zsh.org" <zsh-users@zsh.org>
Date: Monday, May 9, 2016, 1:04 PM
09.05.2016, 21:40,
"david sowerby" <d_sowerby@yahoo.com>:
>
I noticed recently that when I <tab> to complete zsh
doubles the first letter of the command eg:
> % cd T <tab> 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
<enter> 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
>
>
====================================================
> 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
You clearly
have some problem with prompt. Most likely you forgot to
surround something in PS1 with %{ … %} 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 “go to position {just after
the place where PS1 ends} and print ‘cd …’”. If
position is wrong you see what you see, but zsh still knows
that it needs to run “cd …” and not “ccd …”.
Except for missing %{ … %}
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).
In any case you
need to check your PS1.
next parent reply other threads:[~2016-05-09 20:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2078594247.1137691.1462826039528.JavaMail.yahoo.ref@mail.yahoo.com>
2016-05-09 20:33 ` david sowerby [this message]
2016-05-10 3:12 ` Bart Schaefer
[not found] <670153790.1038299.1462818842516.JavaMail.yahoo.ref@mail.yahoo.com>
2016-05-09 18:34 ` david sowerby
2016-05-09 20:04 ` Nikolay Aleksandrovich Pavlov (ZyX)
[not found] <1239988964.1061254.1462817768615.JavaMail.yahoo.ref@mail.yahoo.com>
2016-05-09 18:16 ` david sowerby
2011-04-02 21:00 Weird behaviour Raghavendra D Prabhu
2011-04-03 0:05 ` Bart Schaefer
2011-04-03 10:09 ` Raghavendra D Prabhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2078594247.1137691.1462826039528.JavaMail.yahoo@mail.yahoo.com \
--to=d_sowerby@yahoo.com \
--cc=kp-pav@yandex.ru \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).