Description
@ericfreese points in zsh-users/zsh-autosuggestions#529 (comment) that merging feature/redrawhook will break not only zsh-autosuggestions (#579) but possibly other plugins as well.
In a nutshell, suppose that with today's versions of everything (zsh, z-sy-h, and the third-party plugin) the third-party plugin wraps widgets and adds to region_highlight after z-sy-h runs. Once z-sy-h begins to use redrawhook, z-sy-h's hook will run after the third-party widget wrapper, and without the proposed region_highlight
owner=
feature (zsh-users/zsh#57) will trigger issue #418.
Brainstormed solutions include:
- Announce an upcoming breaking change before merging redrawhook
- Merge redrawhook but default it to disabled unless the
owner=
functionality is available - Use dummy
region_highlight
entries (see next comment)
Between the two options listed thus far, I would vote for the second. It's not ideal but it avoids breakage for users who also use third-party plugins until those upgrade to pre-redrawhook as well.
Does anyone see a third option?