|
@@ -120,9 +120,11 @@ class KMSearchReplaceWindowController: NSWindowController {
|
|
self.matchWholeCheck.title = NSLocalizedString("Whole Words Only", comment: "")
|
|
self.matchWholeCheck.title = NSLocalizedString("Whole Words Only", comment: "")
|
|
self.matchWholeCheck.target = self
|
|
self.matchWholeCheck.target = self
|
|
self.matchWholeCheck.action = #selector(_checkAction)
|
|
self.matchWholeCheck.action = #selector(_checkAction)
|
|
|
|
+ self.matchWholeCheck.state = .off
|
|
self.caseSensitiveCheck.title = NSLocalizedString("Ignore Case", comment: "")
|
|
self.caseSensitiveCheck.title = NSLocalizedString("Ignore Case", comment: "")
|
|
self.caseSensitiveCheck.target = self
|
|
self.caseSensitiveCheck.target = self
|
|
self.caseSensitiveCheck.action = #selector(_checkAction)
|
|
self.caseSensitiveCheck.action = #selector(_checkAction)
|
|
|
|
+ self.caseSensitiveCheck.state = .off
|
|
self.previousButton.title = NSLocalizedString("Next", comment: "")
|
|
self.previousButton.title = NSLocalizedString("Next", comment: "")
|
|
self.previousButton.target = self
|
|
self.previousButton.target = self
|
|
self.previousButton.action = #selector(_nextAction)
|
|
self.previousButton.action = #selector(_nextAction)
|
|
@@ -472,6 +474,8 @@ extension KMSearchReplaceWindowController: NSTextFieldDelegate {
|
|
self.nextButton.isEnabled = true
|
|
self.nextButton.isEnabled = true
|
|
self.replaceButton.isEnabled = true
|
|
self.replaceButton.isEnabled = true
|
|
self.replaceAllButton.isEnabled = true
|
|
self.replaceAllButton.isEnabled = true
|
|
|
|
+
|
|
|
|
+ self.currentSel = nil
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|