Re: [RFC/PATCH 3/5] completion: trivial test improvement

2012-11-17 Thread SZEDER Gábor
On Sat, Nov 17, 2012 at 02:38:16AM +0100, Felipe Contreras wrote: > Instead of passing a dummy "", let's check if the last character is a > space, and then move the _cword accordingly. > > Apparently we were passing "" all the way to compgen, which fortunately > expanded it to nothing. Glad you n

[RFC/PATCH 3/5] completion: trivial test improvement

2012-11-16 Thread Felipe Contreras
Instead of passing a dummy "", let's check if the last character is a space, and then move the _cword accordingly. Apparently we were passing "" all the way to compgen, which fortunately expanded it to nothing. Lets do the right thing though. Signed-off-by: Felipe Contreras --- t/t9902-complet