mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Don’t update text field when dismissing find history pop-up with escape
This commit is contained in:
@@ -136,6 +136,7 @@ static size_t line_count (std::string const& text)
|
||||
}
|
||||
- (void)setTableView:(NSTableView*)aTableView;
|
||||
@property (nonatomic) BOOL shouldClose;
|
||||
@property (nonatomic) BOOL shouldCancel;
|
||||
@end
|
||||
|
||||
@implementation OakPasteboardSelectorTableViewHelper
|
||||
@@ -234,7 +235,8 @@ static size_t line_count (std::string const& text)
|
||||
|
||||
- (void)cancel:(id)sender
|
||||
{
|
||||
_shouldClose = YES;
|
||||
_shouldCancel = YES;
|
||||
_shouldClose = YES;
|
||||
}
|
||||
|
||||
- (void)doCommandBySelector:(SEL)aSelector
|
||||
@@ -335,7 +337,7 @@ static size_t line_count (std::string const& text)
|
||||
[parentWindow removeChildWindow:window];
|
||||
[window orderOut:self];
|
||||
|
||||
return [tableView selectedRow];
|
||||
return tableViewHelper.shouldCancel ? -1 : [tableView selectedRow];
|
||||
}
|
||||
|
||||
- (void)setWidth:(CGFloat)width;
|
||||
|
||||
Reference in New Issue
Block a user