From 0276e92c5cbe31f97270dc6e6b1f9f67ec942c3f Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Dec 2024 05:13:03 +0200 Subject: [PATCH] remove extra reference --- .../window/tab/item/page/content/text/gemini/reader/ansi.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/ansi.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/ansi.rs index 652ee5ca..a3bacf19 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/ansi.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/ansi.rs @@ -9,12 +9,13 @@ use gtk::{ TextTag, }; -/// Apply `ANSI` format to new buffer +/// Apply `ANSI`/`SGR` format to new buffer pub fn format(source_code: &str) -> Vec<(TextTag, String)> { // Init new line buffer let mut buffer = Vec::new(); - for entity in categorise_text(&source_code) { + // Begin entities parse + for entity in categorise_text(source_code) { // Create new tag from default preset let tag = Tag::new();