debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #07519
[Bug 119938] Re: Offset error with autocompletion (with color+newline in PS1)
Immigrating to the United States can be a life-changing decision, filled
with both opportunity and complexity. Whether you're seeking an
employment-based visa like EB1, EB2 NIW, H1B, or O-1, or you're
reuniting with loved ones through a family-based visa, navigating U.S.
immigration law requires experience, precision, and empathy. If you're
looking for the best immigration attorney in Houston, Accura Immigration
Law offers expert and compassionate representation tailored to your
unique case. Immigration law is one of the most intricate and evolving
areas of U.S. law. Regulations can change rapidly, and the success of a
petition often depends on the attorney's ability to interpret, apply,
and present your case within the framework of current immigration
policy.The best immigration attorney isn’t just someone who understands
the law—they are someone who understands your story. At Accura
Immigration Law, we believe in building relationships with our clients,
not just processing cases. From the first consultation to final
approval, we offer honest advice, personalized strategies, and
relentless advocacy. Contact us by visiting here:
https://www.accuralaw.com/
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/119938
Title:
Offset error with autocompletion (with color+newline in PS1)
Status in bash package in Ubuntu:
Fix Released
Bug description:
Binary package hint: bash
Recipe to reproduce:
1. Set PS1:
$ PS1="\[\033[0;32m\]{ \[\033[0;32m\]\w\[\033[0;32m\] }\n\$\[\033[0m\] "
{ /tmp }
$ _
2. Type "ls ./_ /foo" ("_" is where the cursor should be, just after "./".
3. Press TAB twice.
A list of available files in the current directory should get displayed and the internal cursor position (and the cursor itself) gets moved 11 chars to the right.
This is what the prompt looks like then ("_": cursor):
{ /tmp }
$ ls ./ /foo _
It appears that this bug gets triggered by color/non-visible chars
_and_ a newline (\n) in PS1.
This is with 3.2.17(1)-release (3.2-0ubuntu8) (backported from Gutsy).
If someone can confirm this I will send it upstream.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/119938/+subscriptions