Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion of empty directories



On Fri, Nov 23, 2018 at 3:12 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> When xxx/ is empty, the <TAB> does nothing.  Could it complete x/ to xxx/?

The difference happens at this line:

        +_path_files:463> compfiles -p tmp1 accex / ' ' '' fake '*'

when xxx/ is empty, this assigns nothing to tmp1 for x/, but when it
is non-empty this assigns xxx/foo to tmp1.

My guess is that this comes down to the cf_pats() function, but I
haven't traced through the C code in detail.



Messages sorted by: Reverse Date, Date, Thread, Author