mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Force find/replace text fields to recreate display string
The previous attempt does not work on macOS 10.12, presumably because the object value doesn’t actually change, despite the setter being invoked.
This commit is contained in:
@@ -919,9 +919,16 @@ static NSButton* OakCreateStopSearchButton ()
|
||||
|
||||
// Re-format current value
|
||||
if(!_findTextField.currentEditor)
|
||||
{
|
||||
_findTextField.objectValue = nil;
|
||||
_findTextField.objectValue = _findString;
|
||||
}
|
||||
|
||||
if(!_replaceTextField.currentEditor)
|
||||
{
|
||||
_replaceTextField.objectValue = nil;
|
||||
_replaceTextField.objectValue = _replaceString;
|
||||
}
|
||||
|
||||
[self addStylesToFieldEditor];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user