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
I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.
Is there an existing issue for this?
I have searched the existing issues.
Is this issue related to iced?
My hardware is compatible and my graphics drivers are up-to-date.
What happened?
When the application Theme changes, TextEditor is redrawn, but is not rehighlighted.
What is the expected behavior?
Since the to_format field of TextEditor::highlight_with accepts a closure with the Theme as an argument, and the Theme gets passed to to format fn in TextEditor::draw as well, I'd expect it to get rehighlighted when Theme changes. I'd open a PR, but I don't see a way to check if the Theme has actually changed, and I believe calling state.highlighter.borrow_mut().change_line(0) on each redraw isn't desired.
Version
master
Operating System
Linux
Do you have any log output?
The text was updated successfully, but these errors were encountered:
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
When the application
Theme
changes,TextEditor
is redrawn, but is not rehighlighted.What is the expected behavior?
Since the
to_format
field ofTextEditor::highlight_with
accepts a closure with the Theme as an argument, and the Theme gets passed to to format fn inTextEditor::draw
as well, I'd expect it to get rehighlighted when Theme changes. I'd open a PR, but I don't see a way to check if the Theme has actually changed, and I believe callingstate.highlighter.borrow_mut().change_line(0)
on each redraw isn't desired.Version
master
Operating System
Linux
Do you have any log output?
The text was updated successfully, but these errors were encountered: