Re: [PATCH] fix COMP_WORDS when completing an empty word

2022-06-30 Thread Lawrence Velázquez
On Mon, Jun 20, 2022, at 6:28 AM, n+b...@monade.li wrote: > From: Naïm Favier > > Currently, typing `cmd flag1 flag2` (note the two spaces), navigating > between the two spaces and hitting Tab produces > `COMP_WORDS=(cmd flag1 flag2)` without inserting an empty word between > flag1 and flag2. > >

[PATCH] fix COMP_WORDS when completing an empty word

2022-06-20 Thread Naïm Favier
Currently, typing `cmd flag1 flag2` (note the two spaces), navigating between the two spaces and hitting Tab produces `COMP_WORDS=(cmd flag1 flag2)` without inserting an empty word between flag1 and flag2. I believe this comes from considering the cursor ("sentinel") as a block rather than a line

[PATCH] fix COMP_WORDS when completing an empty word

2022-06-20 Thread n+bash
From: Naïm Favier Currently, typing `cmd flag1 flag2` (note the two spaces), navigating between the two spaces and hitting Tab produces `COMP_WORDS=(cmd flag1 flag2)` without inserting an empty word between flag1 and flag2. I believe this comes from considering the cursor ("sentinel") as a bloc