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

Re: [PATCH?] Re: Autocorrect for commands with a hyphen (dash) in the name



On Sat, 2020-05-23 at 14:18 -0700, Bart Schaefer wrote:
> > But still not sure we
> > actually need two separate token-based interventions.
> 
> Which two are we talking about?  You mean you think we can unify lex.c
> and zle_tricky.c inside spckword()?  Yes, we could move the whole
> thing to utils.c, and then spckword() would be expecting to take a
> tokenized string rather than an untokenized one.

Yes, at the moment spckword() is expecting a sort of slightly tokenised
here and there string, which isn't a particular great interface.

pws



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