You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Widgets are overridden to call _zle_highlight. How can I prevent this from happening when I know a widget doesn't need to trigger highlighting? In my script, with my widget?
I would say this is possible, because zsh-users/zaw behaves like if it had accomplished this – it's region_highlight setting doesn't disappear when using cursors. One of first things that _zle_highlight does is resetting region_highlight array. I load z-sy-h after zaw.
The text was updated successfully, but these errors were encountered:
I'm not sure what zaw does, but there seem to be two separate issues here:
Perhaps z-sy-h should append to an already existing $region_highlight, rather than discard the existing value.
Given that z-sy-h asks to be registered last, having some form of "widgets not to wrap" might be reasonable. I say "might" because this facility would only be needed in zsh≤5.2 anyway, since ≥5.3 will do away with widget-by-widget wrapping in favour of pre-redraw (redrawhook issues #245).
Let's keep this issue about #2 (feel free to file a separate issue for #1). This should be simple to implement and useful to people running zsh 5.2 or older with latest z-sy-h. That is likely a common setup, so I'm inclined to support this change.
What would the interface by which people specify which widgets should/shouldn't be wrapped be?
Widgets are overridden to call _zle_highlight. How can I prevent this from happening when I know a widget doesn't need to trigger highlighting? In my script, with my widget?
I would say this is possible, because
zsh-users/zaw
behaves like if it had accomplished this – it's region_highlight setting doesn't disappear when using cursors. One of first things that _zle_highlight does is resetting region_highlight array. I load z-sy-h after zaw.The text was updated successfully, but these errors were encountered: