From 5c68b550678601a9646e0c44e617069ee16db348 Mon Sep 17 00:00:00 2001 From: pml68 Date: Wed, 26 Feb 2025 23:23:52 +0100 Subject: feat: switch to personal `iced` fork, work on version info --- src/panes/code_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/panes') diff --git a/src/panes/code_view.rs b/src/panes/code_view.rs index e133078..89d17e8 100644 --- a/src/panes/code_view.rs +++ b/src/panes/code_view.rs @@ -20,7 +20,6 @@ fn highlight_style(theme: &Theme, scope: &Scope) -> Format { pub fn view( editor_content: &text_editor::Content, - theme: Theme, is_focused: bool, ) -> pane_grid::Content<'_, Message> { let title = row![ @@ -46,8 +45,9 @@ pub fn view( text_editor(editor_content) .on_action(Message::EditorAction) .font(Font::MONOSPACE) + .rehighlight_on_redraw(true) .highlight_with::( - Settings::new(vec![], highlight_style, theme, "rs"), + Settings::new(vec![], highlight_style, "rs"), Highlight::to_format, ) .style(|theme, _| { -- cgit v1.2.3