git-gui: Correct disappearing unstaged files.
A prior commit tried to use the old index state for the old working directory state during a UI refresh of a file. This caused files which were being unstaged (and thus becoming unmodified) to drop out of the working directory side of the display, at least until the user performed a rescan to force the UI to redisplay everything. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
6bdc929984
commit
a4b1786b95
@ -1336,7 +1336,7 @@ proc display_file {path state} {
|
|||||||
if {[string index $old_m 0] eq {U}} {
|
if {[string index $old_m 0] eq {U}} {
|
||||||
set o U
|
set o U
|
||||||
} else {
|
} else {
|
||||||
set o [string index $old_m 0]
|
set o [string index $old_m 1]
|
||||||
}
|
}
|
||||||
if {[string index $new_m 0] eq {U}} {
|
if {[string index $new_m 0] eq {U}} {
|
||||||
set n U
|
set n U
|
||||||
|
Loading…
Reference in New Issue
Block a user