From 7e346b5e1971c21d24945c2f09c60b7463a619d1 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 15 Mar 2026 10:55:07 +0300 Subject: Refactor: deal with unused code --- tui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tui.go') diff --git a/tui.go b/tui.go index 24074a6..98130fb 100644 --- a/tui.go +++ b/tui.go @@ -850,7 +850,7 @@ func initTUI() { if event.Key() == tcell.KeyF9 { // table of codeblocks to copy text := textView.GetText(false) - cb := tools.CodeBlockRE.FindAllString(text, -1) + cb := models.CodeBlockRE.FindAllString(text, -1) if len(cb) == 0 { showToast("notify", "no code blocks in chat") return nil @@ -1147,7 +1147,7 @@ func initTUI() { } // check if plain text if !injectRole { - matches := tools.RoleRE.FindStringSubmatch(msgText) + matches := models.RoleRE.FindStringSubmatch(msgText) if len(matches) > 1 { persona = matches[1] msgText = strings.TrimLeft(msgText[len(matches[0]):], " ") -- cgit v1.2.3