Skip to content

fix: Glow chokes on broken symlinks#863

Open
majiayu000 wants to merge 1 commit intocharmbracelet:masterfrom
majiayu000:fix-836-glow-chokes-on-broken-symlinks
Open

fix: Glow chokes on broken symlinks#863
majiayu000 wants to merge 1 commit intocharmbracelet:masterfrom
majiayu000:fix-836-glow-chokes-on-broken-symlinks

Conversation

@majiayu000
Copy link
Copy Markdown

Summary

This PR fixes #836

Changes

  • ui/ui.go

When scanning for markdown files, glow now checks if symlinks point to
valid targets before adding them to the file list. This prevents:
1. Empty entries appearing in the file list
2. Infinite loading spinner when selecting broken symlinks

Fixes charmbracelet#836

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000 majiayu000 requested a review from a team as a code owner December 29, 2025 09:39
@majiayu000 majiayu000 requested review from andreynering and raphamorim and removed request for a team December 29, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Glow chokes on broken symlinks

1 participant