TextMate is a graphical text editor for OS X 10.7+
Revision | 6fa92db26529c1c06ae1f0e201213b99bb1174c2 (tree) |
---|---|
Time | 2012-08-22 06:45:45 |
Author | Allan Odgaard <git@abet...> |
Commiter | Allan Odgaard |
fixup! Prune redundant items from SCM data source
@@ -54,10 +54,10 @@ _Iter prune_path_children (_Iter it, _Iter last) | ||
54 | 54 | { |
55 | 55 | _Iter out = it; |
56 | 56 | std::sort(it, last); |
57 | - for(std::string parent = NULL_STR; it != last; parent = *it++) | |
57 | + for(std::string parent = NULL_STR; it != last; ++it) | |
58 | 58 | { |
59 | 59 | if(it->size() <= parent.size() || it->at(parent.size()) != '/' || it->find(parent) != 0) |
60 | - *out++ = *it; | |
60 | + *out++ = parent = *it; | |
61 | 61 | } |
62 | 62 | return out; |
63 | 63 | } |