File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,13 @@ impl DrawableComponent for DiffComponent {
293
293
style_title = style_title. modifier ( Modifier :: BOLD ) ;
294
294
}
295
295
296
+ let title =
297
+ format ! ( "{}{}" , strings:: TITLE_DIFF , self . current. path) ;
296
298
f. render_widget (
297
299
Paragraph :: new ( self . get_text ( r. width , r. height ) . iter ( ) )
298
300
. block (
299
301
Block :: default ( )
300
- . title ( strings :: TITLE_DIFF )
302
+ . title ( title . as_str ( ) )
301
303
. borders ( Borders :: ALL )
302
304
. border_style ( style_border)
303
305
. title_style ( style_title) ,
Original file line number Diff line number Diff line change 1
1
pub static TITLE_STATUS : & str = "Unstaged Changes [1]" ;
2
- pub static TITLE_DIFF : & str = "Diff" ;
2
+ pub static TITLE_DIFF : & str = "Diff: " ;
3
3
pub static TITLE_INDEX : & str = "Staged Changes [2]" ;
4
4
5
5
pub static TAB_STATUS : & str = "Status" ;
You can’t perform that action at this time.
0 commit comments