mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Never update OakFileIconImage states that are not marked dirty
This commit is contained in:
@@ -225,9 +225,9 @@ enum {
|
||||
struct stat buf;
|
||||
if(lstat(path.c_str(), &buf) == 0)
|
||||
{
|
||||
_exists = YES;
|
||||
_directory = S_ISDIR(buf.st_mode);
|
||||
_alias = S_ISLNK(buf.st_mode);
|
||||
_exists = !(_needsSetupMask & kNeedExists) ? _exists : YES;
|
||||
_directory = !(_needsSetupMask & kNeedDirectory) ? _directory : S_ISDIR(buf.st_mode);
|
||||
_alias = !(_needsSetupMask & kNeedAlias) ? _alias : S_ISLNK(buf.st_mode);
|
||||
}
|
||||
_needsSetupMask &= ~(kNeedExists|kNeedDirectory|kNeedAlias);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user