Re: Completiong for first word invoked even when cursor is before the first word

2011-05-06 Thread Chet Ramey
On 5/1/11 11:02 AM, Ville Skyttä wrote: > Hello, > > Completion functions seem to be invoked for the first word even when the > cursor is before that word. For example: > > $ foo() { echo ; echo completing; } > $ foo # hit Ctrl-A to go to beginning of line (before foo), then Tab > completing I

Completiong for first word invoked even when cursor is before the first word

2011-05-01 Thread Ville Skyttä
Hello, Completion functions seem to be invoked for the first word even when the cursor is before that word. For example: $ foo() { echo ; echo completing; } $ foo # hit Ctrl-A to go to beginning of line (before foo), then Tab completing Same thing if there's whitespace before the first word and