summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2022-04-14 21:24:08 +0900
committerJesse Duffield <jessedduffield@gmail.com>2022-04-15 08:58:49 +1000
commitb3e18bd2581eca765f55a6f7ba5c82435fb67336 (patch)
tree8af9e9ec9f7dbea5122fc0ef0c2da44e1651a91c /pkg/commands
parent90c9c46ffcecea705bec3e98f34575efe2ab3bee (diff)
fix(loaders/file.go): fix not to trim renamed file names
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/loaders/files.go2
1 files changed, 1 insertions, 1 deletions
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++
}