mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-08 14:23:23 +00:00
macos: can allow single char searches now
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user