Gutter not agreeing with tabs, tree-view or git (gutter is incorrect)
lee-dohm opened this issue · 7 comments
Reproduced on Atom v1.7.0-dev-19623b3 on Mac OS X 10.11.3. It does not repro on either v1.5.3 or v1.6.0-beta6.
Steps I used to (unsuccessfully) correct it:
- Close and reopen the file
- Close and restart Atom
- Open Atom in Safe Mode
- Open Atom in Safe Mode with
--clear-window-state
- Open Atom with only
--clear-window-state
- Clone the repository again in a new directory and open Atom there
I'll try bisecting next to see if I can track down where it went wrong.
So the tree-view was wrong but the diff markers were right? Or do I have that backwards?
Yeah, sorry ... the diff markers were wrong. Tree view and tabs were correct.
Could you zip up the repo and post it somewhere accessible? This sounds really odd.
Yeah, I'll do that.
On Tue, Mar 1, 2016 at 7:20 PM, Josh Abernathy notifications@github.com
wrote:
Could you zip up the repo and post it somewhere accessible? This sounds
really odd.—
Reply to this email directly or view it on GitHub
#88 (comment).
Forgot to post the bisect results. This was weird enough I wasn't sure if it was necessarily a git-diff change that did it, but the bisect tracked down the first occurrence to the update of Atom to git-diff v1.0.0.
I can reproduce this (I think).
- Open a file that does not have a trailing newline.
- Save it to trigger a newline being added (and observe that the diff marker appears on the wrong line).
- Close Atom.
- Discard changes through Git (in my case, Github Desktop).
- Re-open Atom.
- Observe that the diff marker is still there despite changes being discarded.
Closing and re-opening the file does not help.
Windows 10 x64, 1.7.0-dev-663d9b2, safe mode. The file in question has LF line endings if it matters.
I've opened a PR on nodegit with the fix: nodegit/nodegit#938