-
-
Notifications
You must be signed in to change notification settings - Fork 36
Description
In Hyprland, searching with '/' is broken when the filter string starts with the letters 'a', 'f', 'g', or 'i'. This issue is reproducible in terminal kitty and alacritty.
Error Log:
$ clipse
`Caught panic:
runtime error: index out of range [1] with length 1
Restoring terminal...
goroutine 39 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
runtime/debug.PrintStack()
runtime/debug/stack.go:18 +0x13
github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0xc00009e000)
github.com/charmbracelet/[email protected]/tea.go:705 +0x8b
panic({0x5818f9f2e220?, 0xc000e26558?})
runtime/panic.go:785 +0x132
github.com/sahilm/fuzzy.FindFromNoSort({0xc000e28bcc?, 0xc0000122a0?}, {0x5818f9f488d0, 0xc0000122a0})
github.com/sahilm/[email protected]/fuzzy.go:136 +0x945
github.com/sahilm/fuzzy.FindFrom({0xc000e28bcc?, 0x8b1?}, {0x5818f9f488d0?, 0xc0000122a0?})
github.com/sahilm/[email protected]/fuzzy.go:99 +0x25
github.com/sahilm/fuzzy.Find(...)
github.com/sahilm/[email protected]/fuzzy.go:83
github.com/charmbracelet/bubbles/list.DefaultFilter({0xc000e28bcc, 0x1}, {0xc0003be000?, 0x8?, 0x0?})
github.com/charmbracelet/[email protected]/list/list.go:89 +0x52
github.com/charmbracelet/bubbles/list.(*Model).handleFiltering.filterItems.func1()
github.com/charmbracelet/[email protected]/list/list.go:1228 +0x1b5
github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1()
github.com/charmbracelet/[email protected]/tea.go:324 +0x7d
created by github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1 in goroutine 69
github.com/charmbracelet/[email protected]/tea.go:318 +0x131
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
runtime/debug.PrintStack()
runtime/debug/stack.go:18 +0x13
github.com/savedra1/clipse/utils.HandleError({0x5818f9f47c20, 0xc000648180})
github.com/savedra1/clipse/utils/err.go:11 +0x2c
main.launchTUI()
github.com/savedra1/clipse/main.go:96 +0x77
main.main()
github.com/savedra1/clipse/main.go:50 +0xc5`
$ clipse
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
runtime/debug.PrintStack()
runtime/debug/stack.go:18 +0x13
github.com/savedra1/clipse/utils.HandleError({0x5b4f2d40cc20, 0xc00071c160})
github.com/savedra1/clipse/utils/err.go:11 +0x2c
main.launchTUI()
github.com/savedra1/clipse/main.go:96 +0x77
main.main()
github.com/savedra1/clipse/main.go:50 +0xc5
