bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prompt with \[ \] corrupted by vi history search


From: Eric Blake
Subject: Re: prompt with \[ \] corrupted by vi history search
Date: Fri, 17 Feb 2006 21:48:23 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Mike Stroyan on 2/8/2006 6:29 PM:
>>My only concern is whether this patch also affects {non-,}incremental
>>searches in emacs mode.  But it sure solves the display bugs of doing
>>non-incremental searches in vi mode.  Thanks for the patch.
> 
> 
> I don't tend to use emacs mode.  A few quick experiments
> definitely show the prompt problem does occur with the
> non-incremental-reverse-search-history (M-p)
> feature in emacs mode.  The patch corrects that symptom as well.
> I don't see any problem with the incremental search.  It doesn't
> seem to ever try to incorporate the standard prompt.

It seems I spoke too soon.  Your patch works great on single-line prompts
with invisible characters, but breaks on multiline prompts:

$ set -o vi
$ PS1='\[\e]0;hi\a\]\n% '  # After this, I hit [ENTER][ESC]/P[Ctrl-c]
%

%
% /
% /
% /P

% # Wow - look at those extra lines!

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD9qcX84KuGfSFAYARAtOTAKClZCEZNVBaffXQ+e2CsCPAn4yIqwCfXglM
A/gajepfvACxOC/5HYq1TfY=
=cKhx
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]