mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Use path separator const when building relative path
This commit is contained in:
parent
d09b225087
commit
000a0baae8
1 changed files with 1 additions and 1 deletions
2
ui/ui.go
2
ui/ui.go
|
@ -654,7 +654,7 @@ func localFileToMarkdown(cwd string, res gitcha.SearchResult) *markdown {
|
|||
md := &markdown{
|
||||
markdownType: localMarkdown,
|
||||
localPath: res.Path,
|
||||
displayPath: strings.Replace(res.Path, cwd+"/", "", -1), // strip absolute path
|
||||
displayPath: strings.Replace(res.Path, cwd+string(os.PathSeparator), "", -1), // strip absolute path
|
||||
Markdown: charm.Markdown{},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue