File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -273,8 +273,12 @@ impl Editor {
273273 ( full_path. clone ( ) , String :: new ( ) )
274274 } else {
275275 // Get parent directory so the file will be in the listing
276- let parent = full_path. parent ( ) . map ( |p| p. to_path_buf ( ) ) . unwrap_or ( full_path. clone ( ) ) ;
277- let name = full_path. file_name ( )
276+ let parent = full_path
277+ . parent ( )
278+ . map ( |p| p. to_path_buf ( ) )
279+ . unwrap_or ( full_path. clone ( ) ) ;
280+ let name = full_path
281+ . file_name ( )
278282 . map ( |n| n. to_string_lossy ( ) . to_string ( ) )
279283 . unwrap_or_default ( ) ;
280284 ( parent, name)
Original file line number Diff line number Diff line change @@ -885,7 +885,8 @@ fn test_file_browser_prompt_shows_buffer_directory() {
885885 assert ! (
886886 prompt_line. ends_with( expected_suffix) ,
887887 "Prompt should end with '{}'\n Actual: '{}'" ,
888- expected_suffix, prompt_line,
888+ expected_suffix,
889+ prompt_line,
889890 ) ;
890891
891892 // The sibling file should be visible in the file list
You can’t perform that action at this time.
0 commit comments