author | Paul Mackerras <paulus@samba.org> | |
Tue, 20 May 2008 10:51:06 +0000 (20:51 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Tue, 20 May 2008 10:51:06 +0000 (20:51 +1000) | ||
commit | 94b4a69f758131a6282363e1717235a03c3885ef | |
tree | 70ad32dee2f0ea40d9fb9a99b21e5ecc7c52bcd5 | tree | snapshot |
parent | 64dc208c117d6a2e97176342969637e5daba6b8d | commit | diff |
gitk: Fix bug where current row number display stops working
The display of the current row number would stop working if the user
clicked on a line, or if selectedline got unset for any other reason,
because the trace on it got lost when it was unselected. This fixes
it by changing the places that unset selectedline to set it to the
empty string instead, and the places that tested for it being set or
unset to compare it with the empty string. Thus it never gets unset
now. This actually simplified the code in a few places since it can
be compared for equality with a row number now without first testing
if it is set.
Signed-off-by: Paul Mackerras <paulus@samba.org>
The display of the current row number would stop working if the user
clicked on a line, or if selectedline got unset for any other reason,
because the trace on it got lost when it was unselected. This fixes
it by changing the places that unset selectedline to set it to the
empty string instead, and the places that tested for it being set or
unset to compare it with the empty string. Thus it never gets unset
now. This actually simplified the code in a few places since it can
be compared for equality with a row number now without first testing
if it is set.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |