diff --git a/gnome/src/ui/preview/plain_preview.rs b/gnome/src/ui/preview/plain_preview.rs index daedd23..be7672d 100644 --- a/gnome/src/ui/preview/plain_preview.rs +++ b/gnome/src/ui/preview/plain_preview.rs @@ -83,6 +83,7 @@ mod imp { let lm = sourceview5::LanguageManager::default(); let language = lm.guess_language(Some(&file), None); buffer.set_language(language.as_ref()); + self.text_view.set_monospace(language.is_some()); // Place cursor on result line. let mut cursor_position = buffer.start_iter();