summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-15 10:55:07 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-15 10:55:07 +0300
commit7e346b5e1971c21d24945c2f09c60b7463a619d1 (patch)
treea2ab34d1216cbc3c736c7307aa47644ca6bf3b14 /tui.go
parent1396b3eb05c32d868a3e07b8f60813f28d2042f8 (diff)
Refactor: deal with unused code
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go4
1 files changed, 2 insertions, 2 deletions
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]):], " ")