macos: can allow single char searches now

pull/9709/head
Mitchell Hashimoto 2025-11-26 06:53:38 -08:00
parent f91080a165
commit 339abf97f7
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ extension Ghostty {
if let searchState {
searchNeedleCancellable = searchState.$needle.removeDuplicates().sink { [weak self] needle in
guard let surface = self?.surface else { return }
guard needle.count > 1 else { return }
guard needle.count > 0 else { return }
let action = "search:\(needle)"
ghostty_surface_binding_action(surface, action, UInt(action.count))
}