From b3e18bd2581eca765f55a6f7ba5c82435fb67336 Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Thu, 14 Apr 2022 21:24:08 +0900 Subject: [PATCH] fix(loaders/file.go): fix not to trim renamed file names --- pkg/commands/loaders/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/loaders/files.go b/pkg/commands/loaders/files.go index 8ab727453..825cad595 100644 --- a/pkg/commands/loaders/files.go +++ b/pkg/commands/loaders/files.go @@ -125,7 +125,7 @@ func (c *FileLoader) GitStatus(opts GitStatusOptions) ([]FileStatus, error) { if strings.HasPrefix(status.Change, "R") { // if a line starts with 'R' then the next line is the original file. - status.PreviousName = strings.TrimSpace(splitLines[i+1]) + status.PreviousName = splitLines[i+1] status.StatusString = fmt.Sprintf("%s %s -> %s", status.Change, status.PreviousName, status.Name) i++ }