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

Re: [PATCH] isearch: do not use PAT_STATIC since we call zle hooks



On Jan 6,  5:25pm, m0viefreak wrote:
}
} Using PAT_STATIC, any of the functions called in the hook that make
} use of patterns, implicitly change the pattern we use in the
} isearch loop. In the best case this results in pattern-not-found,
} in the worst case we get a dump.

Thanks for catching this.  I expect we're going to be findind this
kind of thing elsewhere, now that we have so many hook points -- lots
of code that was written expecting it would never be re-entered is
potentially going to be invoked from hooks, possibly even from hooks
within hooks.



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