mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-23 00:24:17 +02:00
Fix extreme edge case error logging where local file has no path
This commit is contained in:
parent
2e7b0ec60f
commit
089b66f622
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
|
|||
_, exists := m.filesStashing[md.localPath]
|
||||
|
||||
if exists || (md.markdownType != localMarkdown) || md.localPath == "" {
|
||||
if md.localPath == "" {
|
||||
if md.markdownType == localMarkdown && md.localPath == "" {
|
||||
log.Printf("refusing to load markdown; local path is empty: %#v", md)
|
||||
}
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue