fix(panel): strip external treesitter/syntax from panel buffers#117
fix(panel): strip external treesitter/syntax from panel buffers#117dlyongemallo merged 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a display bug in Diffview panel buffers where external highlighters (notably Tree-sitter-based markdown renderers) can interpret panel text as markup (e.g., _word_) and alter what’s shown.
Changes:
- Add a helper to stop Tree-sitter and clear Vim syntax for panel buffers.
- Invoke that helper immediately on panel buffer creation.
- Re-apply the stripping on
FileTypeandBufWinEnterto counter plugins re-attaching after events.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3a78a0e to
3fe7496
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3fe7496 to
909697c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
909697c to
0d274ea
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0d274ea to
44d0046
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes a bug where pairs of underscores in a filename in the file history panel are parsed as markdown and result in their removal and the display of intervening text as italics, if a plugin such as render-markdown.nvim is installed.