diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 21:53:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 21:53:19 +0300 |
| commit | b471ee866e77cd2561b95402155e925ebf7c8946 (patch) | |
| tree | 2f904cde80afb37b453ad5552e8a7d2f57687980 | |
| parent | 61925163f0a2f2a96a1b96be3dc8f1c258926c97 (diff) | |
Task 5: pre-allocate searchRegexCache
| -rw-r--r-- | internal/ui/table.go | 2 | ||||
| -rw-r--r-- | internal/ui/ultra.go | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go index 464b29f..03c4774 100644 --- a/internal/ui/table.go +++ b/internal/ui/table.go @@ -25,7 +25,7 @@ var priorityOptions = []string{"H", "M", "L", ""} var ( urlRegex = regexp.MustCompile(`https?://\S+`) - searchRegexCache = make(map[string]*regexp.Regexp) + searchRegexCache = make(map[string]*regexp.Regexp, 16) ) type cellMatch struct { diff --git a/internal/ui/ultra.go b/internal/ui/ultra.go index e84b472..8615ee5 100644 --- a/internal/ui/ultra.go +++ b/internal/ui/ultra.go @@ -1055,8 +1055,6 @@ func (m *Model) handleUltraMode(msg tea.KeyPressMsg) (tea.Model, tea.Cmd) { return m.handleUltraRemoveDueDate() case "r": return m.handleRandomDueDate() - case "o": - return m.handleOpenURL() case "t": return m.handleUltraEditTags() case "a": |
