You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Up arrow at the top of History list sends us to a random commit #2763
When the history is long, highlighting the last commit (the most recent one) at the top of the history list and then typing the "up" arrow sends us to a random commit in the list, sometimes years ago.
Version
GitHub Desktop version: [0.9.1]
OS version: [Mac OS X 10.9.5]
Steps to Reproduce
Launch GitHub Desktop
Switch to a branch with a long history (for instance the master branch of an active project)
Click on the History panel to show the history of the last commits
Click on the most recent commit, or navigate to it with up/down arrow keys
Once the most recent commit is highlighted at the top of the list, type the "up" arrow key
Expected behavior: The list should not change and the most recent commit should stay highlighted
Actual behavior: The list jumps to a random commit, sometimes years ago
@tierninho Nope, in my case the up arrow does not cycle me to the bottom of the history list, but jumps to a random commit N somewhere in the middle of the list (it changes every time). This means that I can not undo the effect of the up arrow with a subsequent down arrow, as the down arrow just brings me to commit (N+1).
In fact, anyway, I think the list should not change when we are on top of the list and we hit up.
@snicolet Thanks for the clarity. I was able to reproduce the error on your repo, however I do have a temporary "fix" as well.
Looks like the all commits in the History need to be loaded first, and then the functionality works as intended. This means scrolling to the bottom of the 4,135 commits, then attempting the up arrow.
Due to the long list of commits, upon first opening the History tab, it appears there is a limited load of commits that prevents Desktop from jumping to the true first commit.
Activity
tierninho commentedon Sep 18, 2017
@snicolet The
uparrow cycles you to the bottom of the history list as it is an endless loop. All commits are in chronological order.Similarly, hitting the
downarrow on the last commit will bring you to the latest commit.Perhaps @desktop/design has some new thoughts on the matter.
shiftkey commentedon Sep 18, 2017
Cross-referencing the earlier report on this: #2479
snicolet commentedon Sep 18, 2017
@tierninho Nope, in my case the
uparrow does not cycle me to the bottom of the history list, but jumps to a random commit N somewhere in the middle of the list (it changes every time). This means that I can not undo the effect of theuparrow with a subsequentdownarrow, as thedownarrow just brings me to commit (N+1).In fact, anyway, I think the list should not change when we are on top of the list and we hit
up.PS: this is with an history of 4135 commits for the chess program project https://github.com/official-stockfish/Stockfish
tierninho commentedon Sep 18, 2017
@snicolet Thanks for the clarity. I was able to reproduce the error on your repo, however I do have a temporary "fix" as well.
Looks like the all commits in the History need to be loaded first, and then the functionality works as intended. This means scrolling to the bottom of the 4,135 commits, then attempting the
uparrow.Due to the long list of commits, upon first opening the History tab, it appears there is a limited load of commits that prevents Desktop from jumping to the true first commit.
joshaber commentedon Sep 18, 2017
Yeah, this is a weird bit of behavior caused by the way keyboard navigation wraps around. We should disable it.
shiftkey commentedon Sep 18, 2017
There be dragons here, as we found out in #2539 when we took a shot at this.
shiftkey commentedon Sep 20, 2017
#2479 is marked as
future-proposal, so I'm going to close this out as a duplicate.Feel free to add any other feedback to that issue.