mirror of
https://github.com/textmate/textmate.git
synced 2026-01-19 19:58:11 -05:00
Don’t suppress file browser updates when showing field editor
Reload was suppressed because there is no good way to reload a table view when the field editor contains uncommitted changes. I decided it’s probably better to lose these changes than show stale content, as for example the change might remove the item being edited, as would be the case when undoing New Document or New Folder. Closes #886.
This commit is contained in:
@@ -343,7 +343,10 @@ static NSSet* VisibleItems (NSOutlineView* outlineView, FSItem* root, NSMutableS
|
||||
--itemsReloading;
|
||||
|
||||
if([outlineView editedRow] != -1)
|
||||
return; // FIXME Queue reload while editing a cell
|
||||
{
|
||||
self.pendingEditURL = [[outlineView itemAtRow:[outlineView editedRow]] url];
|
||||
[outlineView cancelOperation:self]; // TODO Grab the field editor’s string value and restore later
|
||||
}
|
||||
|
||||
if(recursive)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user