Re: Problem with bind -x

2015-04-24 Thread Chet Ramey
On 4/21/15 3:42 PM, isabella parakiss wrote: > I noticed a problem with bind -x: readline re-prints the line if the > function is called when the cursor is not in the first line. This is a difficult problem. The readline redisplay engine does not know where the cursor is when the c

Problem with bind -x

2015-04-21 Thread isabella parakiss
I noticed a problem with bind -x: readline re-prints the line if the function is called when the cursor is not in the first line. To reproduce it (and to understand what I mean, if it's not clear): prompt$ myfunc () { :; } prompt$ bind -x '"\C-a":myfunc' Now write a l