adobe/brackets — pull request #1975 by jbalsas (2012-10-28 11:42:31+00:00)
Title: Fix for renaming files with a superstring of the old name (#1971)

This is a possible fix for https://github.com/adobe/brackets/issues/1971

Currently there's an issue in `DocumentManager` where the files of documents in the working set get updated twice. If the newName is a superstring of the old one, then the second time it gets called, the `indexOf(oldName)` check is still true but `entry.fullPath` is already `newName`, so the `replace` results in seeing the oldName appended with the difference with the new one.

See https://github.com/adobe/brackets/issues/1971 for further discussion