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
The highlight_char docs say: "Tells if line needs to be highlighted when a specific char is typed or when cursor is moved under a specific char".
I'm reading this to mean it's called both on cursor movement and on line edits, but I don't think there's a way to tell which is happening in the current API. For my use case, line edits require re-style, but cursor movements generally would not...
The text was updated successfully, but these errors were encountered:
Indeed, currently you cannot make the distinction. highlight_char was introduced to avoid refreshing the whole line except when you type (or move on) a specific char (like ')' to highlight the matching pair).
pubtraitHighlighter{
...
/// Due to current limitations (no incremental parsing, no partial repaint, flickers),/// `Hightlighter::highlight` is not called when a character is inserted at the end of the line./// If you want highlighting to be updated each time a character is typed, just overwrite this method.fnhighlight_while_typing(&self) -> bool{false}}
The
highlight_char
docs say: "Tells ifline
needs to be highlighted when a specific char is typed or when cursor is moved under a specific char".I'm reading this to mean it's called both on cursor movement and on line edits, but I don't think there's a way to tell which is happening in the current API. For my use case, line edits require re-style, but cursor movements generally would not...
The text was updated successfully, but these errors were encountered: