bug-bash
[Top][All Lists]
Advanced

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

Re: [readline] Multibyte invisible chars cause weird prompt length calcu


From: Алексей Шилин
Subject: Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Date: Tue, 03 Dec 2019 21:43:27 +0300
User-agent: Evolution 3.30.5-1.1

В Ср, 27/11/2019 в 20:29 -0500, Chet Ramey пишет:
> I poked around enough and found the cause. There will be a
> fix in the next devel branch push.

The first issue with the line not being cleared is indeed fixed.
Thanks!

The second one with incorrect history entry output position after e.g.
End is pressed is unfortunately still there:

test@sid-bash:~$ echo $0
/usr/local/bin/bash
test@sid-bash:~$ PS1='\[\e]0;тестоваястрока\a\]test prompt\$ '
test prompt$ echo hello world
hello world
test prompt$ 

# Press C-r, type 'he' and press End
# Result:

test prompt$rld
           ^------ cursor is here



Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux sid-bash 4.19.0-6-amd64 #1 SMP Debian 4.19.67-
2+deb10u2 (2019-11-11) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 11
Release Status: maint




reply via email to

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