File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -4170,23 +4170,26 @@ impl GitPanel {
41704170 . child ( self . entry_label ( new_display, label_color) )
41714171 } )
41724172 . when ( old_path. is_none ( ) , |this| {
4173- this. when_some ( entry. parent_dir ( path_style) , |this, parent| {
4174- if !parent. is_empty ( ) {
4175- this. child (
4176- self . entry_label (
4177- format ! ( "{parent}{}" , path_style. separator( ) ) ,
4178- path_color,
4179- )
4180- . when ( status. is_deleted ( ) , |this| this. strikethrough ( ) ) ,
4181- )
4182- } else {
4183- this
4184- }
4185- } )
4186- . child (
4187- self . entry_label ( display_name, label_color)
4173+ this. child (
4174+ self . entry_label ( format ! ( "{display_name} " ) , label_color)
41884175 . when ( status. is_deleted ( ) , |this| this. strikethrough ( ) ) ,
41894176 )
4177+ . when_some (
4178+ entry. parent_dir ( path_style) ,
4179+ |this, parent| {
4180+ if !parent. is_empty ( ) {
4181+ this. child (
4182+ self . entry_label (
4183+ format ! ( "{parent}{}" , path_style. separator( ) ) ,
4184+ path_color,
4185+ )
4186+ . when ( status. is_deleted ( ) , |this| this. strikethrough ( ) ) ,
4187+ )
4188+ } else {
4189+ this
4190+ }
4191+ } ,
4192+ )
41904193 } ) ,
41914194 )
41924195 . into_any_element ( )
You can’t perform that action at this time.
0 commit comments