author | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 23 Sep 2007 21:00:45 +0000 (23:00 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 23 Sep 2007 21:00:45 +0000 (23:00 +0200) | ||
commit | 12e8c2be5c217f1be8bfd48cc9723fc696b0fbf6 | |
tree | 534fde5b751882b4f614749f100c76a5ac13d81e | tree | snapshot |
parent | 7d31b0590bb4ae3f6a06d95e81ae54f13eebc632 | commit | diff |
Fix out-of-range lineno when reloading the status view
Reproducable when standing on the last line of the status view with no
staged files and pressing 'u' twice. The first will make the current
line point outside the range of lines in the view, making the second
update read garbage memory and calling die because of an unknown status
line ID.
Restore previous line number if possible else move make the current
line index be that of the last line in the updated view.
Reproducable when standing on the last line of the status view with no
staged files and pressing 'u' twice. The first will make the current
line point outside the range of lines in the view, making the second
update read garbage memory and calling die because of an unknown status
line ID.
Restore previous line number if possible else move make the current
line index be that of the last line in the updated view.
tig.c | diff | blob | history |