{"comment":{"url":"https://api.github.com/repos/divmain/GitSavvy/comments/10448253","html_url":"https://github.com/divmain/GitSavvy/commit/8496dc7a8ffb96f12550b2d7f1c23ee7cadf52f7#commitcomment-10448253","id":10448253,"user":{"login":"divmain","id":5016978,"avatar_url":"https://avatars.githubusercontent.com/u/5016978?v=3","gravatar_id":"","url":"https://api.github.com/users/divmain","html_url":"https://github.com/divmain","followers_url":"https://api.github.com/users/divmain/followers","following_url":"https://api.github.com/users/divmain/following{/other_user}","gists_url":"https://api.github.com/users/divmain/gists{/gist_id}","starred_url":"https://api.github.com/users/divmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divmain/subscriptions","organizations_url":"https://api.github.com/users/divmain/orgs","repos_url":"https://api.github.com/users/divmain/repos","events_url":"https://api.github.com/users/divmain/events{/privacy}","received_events_url":"https://api.github.com/users/divmain/received_events","type":"User","site_admin":false},"position":60,"line":77,"path":"common/ui.py","commit_id":"8496dc7a8ffb96f12550b2d7f1c23ee7cadf52f7","created_at":"2015-03-28T01:26:25Z","updated_at":"2015-03-28T01:26:25Z","body":"Sorry, I went back to edit the above comment because I realized it was unclear, but GitHub was spazzing with the on-going DDoS.\r\n\r\nThe bug occurred because, on first render, it created a region called `git_savvy_interface.untracked_files` containing the list of untracked files.  After staging the file, there were no more untracked files and the region should not have existed - but `clear_regions` failed to actually remove the old region.\r\n\r\nConsequently, [this](https://github.com/divmain/GitSavvy/blob/8f92f3dcefc9088e17f617e9ac78a809a0d452eb/core/interfaces/status.py#L230-L240) did not behave as expected.  The region still erroneously existed, and that region happened to overlap with where the staged file was listed.  So when I pressed `l` to view the inline diff for the cached file, it opened two windows: one for the cached file, and one for the uncached file."}}