@@ -284,10 +284,10 @@ func title_lines(left_path, right_path string, columns, margin_size int, ans []*
284284 }
285285 sl := ScreenLine {}
286286 if right_name != "" && right_name != left_name {
287- sl .left .marked_up_text = format_as_sgr .title + fit_in (sanitize ()( left_name ), available_cols )
288- sl .right .marked_up_text = format_as_sgr .title + fit_in (sanitize ()( right_name ), available_cols )
287+ sl .left .marked_up_text = format_as_sgr .title + fit_in (sanitize (left_name ), available_cols )
288+ sl .right .marked_up_text = format_as_sgr .title + fit_in (sanitize (right_name ), available_cols )
289289 } else {
290- sl .left .marked_up_text = format_as_sgr .title + fit_in (sanitize ()( left_name ), columns - margin_size )
290+ sl .left .marked_up_text = format_as_sgr .title + fit_in (sanitize (left_name ), columns - margin_size )
291291 ll .is_full_width = true
292292 }
293293 l2 := ll
@@ -755,7 +755,7 @@ func rename_lines(path, other_path string, columns, margin_size int, ans []*Logi
755755 ll := LogicalLine {
756756 left_reference : Reference {path : path }, right_reference : Reference {path : other_path },
757757 line_type : CHANGE_LINE , is_change_start : true , is_full_width : true }
758- for _ , line := range splitlines (fmt .Sprintf (`The file %s was renamed to %s` , sanitize ()( path_name_map [path ]), sanitize () (path_name_map [other_path ])), columns - margin_size ) {
758+ for _ , line := range splitlines (fmt .Sprintf (`The file %s was renamed to %s` , sanitize (path_name_map [path ]), sanitize (path_name_map [other_path ])), columns - margin_size ) {
759759 sl := ScreenLine {}
760760 sl .right .marked_up_text = line
761761 ll .screen_lines = append (ll .screen_lines , & sl )
0 commit comments