mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02: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…
Add table
Add a link
Reference in a new issue