diff options
author | mjarkk <mkopenga@gmail.com> | 2021-07-23 12:04:23 +0200 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2021-07-23 12:04:23 +0200 |
commit | fc76b44b4569247462462db0126a739d87781888 (patch) | |
tree | a08786563e1f48586c116d73a1d66074d1833607 /pkg/gui/filetree | |
parent | 9a087d04ebaed311e0bd3d9cbd32dd2973f0406c (diff) |
correctly show files with special chars in commit
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r-- | pkg/gui/filetree/file_node.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/filetree/file_node.go b/pkg/gui/filetree/file_node.go index 4df8bf5bf..cb545d391 100644 --- a/pkg/gui/filetree/file_node.go +++ b/pkg/gui/filetree/file_node.go @@ -1,8 +1,6 @@ package filetree import ( - "fmt" - "github.com/jesseduffield/lazygit/pkg/commands/models" ) @@ -182,7 +180,7 @@ func (s *FileNode) NameAtDepth(depth int) string { prevName = join(splitPrevName[depth:]) } - return fmt.Sprintf("%s%s%s", prevName, " → ", name) + return prevName + " → " + name } return name |