summaryrefslogtreecommitdiffstats
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index 929a6524..eeb9a494 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -39,6 +39,15 @@ pub(crate) enum OpenedInputKind {
CustomReader,
}
+impl OpenedInputKind {
+ pub(crate) fn is_theme_preview_file(&self) -> bool {
+ match self {
+ OpenedInputKind::ThemePreviewFile => true,
+ _ => false,
+ }
+ }
+}
+
pub(crate) struct OpenedInput<'a> {
pub(crate) kind: OpenedInputKind,
pub(crate) metadata: InputMetadata,