[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] [PATCH] fix cursor position after completion
From: |
Miroslav Lichvar |
Subject: |
Re: [Bug-readline] [PATCH] fix cursor position after completion |
Date: |
Fri, 7 Dec 2007 10:53:20 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Thu, Dec 06, 2007 at 11:17:37PM -0500, Chet Ramey wrote:
> > Steps to reproduce the problem in bash can be found here:
> > https://bugzilla.redhat.com/show_bug.cgi?id=249987
>
> Are you telling me that the problem is not fixed by readline-5.2 patch 6
> (identical to bash-3.2 patch 24)? The notes in that bugzilla entry
> indicate that the patch fixes the problem uncovered by the report. If
> there's an additional problem, please send me a test case to reproduce
> it.
readline-5.2 patch 6 didn't fix the problem, the bugzilla entry is
still open.
I can reproduce it with:
1. gcc -x c - -lreadline <<EOF
#include <stdio.h>
#include <readline/readline.h>
char **compl(const char *text, int start, int end) {
return NULL;
}
int main(int argc, char **argv) {
rl_attempted_completion_function = compl;
readline("> \001\e[m\002");
return 0;
}
EOF
2. mkdir foo; cd foo; touch bar
3. LANG=en_US.UTF-8 ../a.out
4. type xxxx, (C-a) and (<TAB>) three times
--
Miroslav Lichvar