From dc5bf1a400ccbaa57544f5bfab1246c4e68482e3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Dec 2024 12:39:21 +0200 Subject: [PATCH] hold text buffer --- .../window/tab/item/page/content/text/gemini/reader.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs index 26ccf57f..ac49e3c1 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs @@ -38,6 +38,7 @@ const LINK_COLOR_DEFAULT: (f32, f32, f32, f32) = (53.0, 132.0, 228.0, 255.0); const LINK_COLOR_ONHOVER: (f32, f32, f32, f32) = (53.0, 132.0, 228.0, 228.0); pub struct Reader { + pub buffer: TextBuffer, pub title: Option, pub widget: Rc, } @@ -459,7 +460,11 @@ impl Reader { }); // @TODO may be expensive for CPU, add timeout? // Result - Ok(Self { title, widget }) + Ok(Self { + buffer, + title, + widget, + }) } }