mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Don’t re-use FSItems for expanded folders during reload
The problem is that the URL property for all descendents of this item are pointing to the old path. Ideally we should recursively update the descendents, because the current workaround loses the expanded state of the folder.
This commit is contained in:
@@ -210,6 +210,9 @@ struct tracking_t : fs::event_callback_t
|
||||
|
||||
FSFileItem* item;
|
||||
auto it = existingItems.find(std::make_pair(fsItem.device, fsItem.inode));
|
||||
if(it != existingItems.end() && fsItem.is_directory && ![it->second.url isEqual:url] && it->second.children)
|
||||
it = existingItems.end();
|
||||
|
||||
if(it != existingItems.end())
|
||||
{
|
||||
item = it->second;
|
||||
|
||||
Reference in New Issue
Block a user