summaryrefslogtreecommitdiffstats
path: root/examples/editor
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-18 13:14:56 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-18 13:14:56 +0200
commit904704d7c1b006c850654dcf3bf9e856e23cb317 (patch)
treef26c32d5769a184c72ca3dc4accacd1ac634d915 /examples/editor
parent910eb72a0620b34e5b3d7793bbd5ab7290e08dd6 (diff)
downloadiced-904704d7c1b006c850654dcf3bf9e856e23cb317.tar.gz
iced-904704d7c1b006c850654dcf3bf9e856e23cb317.tar.bz2
iced-904704d7c1b006c850654dcf3bf9e856e23cb317.zip
Flesh out the `markdown` example a bit more
Diffstat (limited to 'examples/editor')
-rw-r--r--examples/editor/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/editor/src/main.rs b/examples/editor/src/main.rs
index 71b1a719..9ffb4d1a 100644
--- a/examples/editor/src/main.rs
+++ b/examples/editor/src/main.rs
@@ -189,7 +189,7 @@ impl Editor {
.highlight::<Highlighter>(
highlighter::Settings {
theme: self.theme,
- extension: self
+ token: self
.file
.as_deref()
.and_then(Path::extension)