File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -161,12 +161,12 @@ pub fn render(
161
161
}
162
162
}
163
163
164
+ let relative_path = path. strip_prefix ( & dir_content. parent_dir ) . unwrap ( ) ;
164
165
if display_to_be_processed_file {
165
- let relative_path = path. strip_prefix ( & dir_content. parent_dir ) . unwrap ( ) ;
166
166
progress. info ( format ! ( "{relative_path:?}" ) )
167
167
}
168
168
let out = chunk:: process (
169
- & path ,
169
+ & relative_path ,
170
170
content,
171
171
& mut img,
172
172
|line| highlighter. highlight_line ( line, ss) ,
@@ -244,13 +244,12 @@ pub fn render(
244
244
// create an image that fits one column
245
245
let mut img = RgbImage :: new ( column_width * char_width, img_height) ;
246
246
247
+ let relative_path = path. strip_prefix ( & dir_content. parent_dir ) . unwrap ( ) ;
247
248
if display_to_be_processed_file {
248
- let relative_path =
249
- path. strip_prefix ( & dir_content. parent_dir ) . unwrap ( ) ;
250
249
progress. info ( format ! ( "{relative_path:?}" ) )
251
250
}
252
251
let out = chunk:: process (
253
- & path ,
252
+ & relative_path ,
254
253
content,
255
254
& mut img,
256
255
|line| highlighter. highlight_line ( line, ss) ,
You can’t perform that action at this time.
0 commit comments