Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom directory highlights #551

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

Landaman
Copy link
Contributor

@Landaman Landaman commented Jan 6, 2025

This PR fixes an issue with custom highlights on directories.

Currently, the custom highlights apply as requested, but remove the trailing '/', causing Oil to consider the directories as deleted and files with the same name as directories to be created.

Simple fix checks if the type is a directory and adds the '/' back

These would loose their trailing '/', making them unusable
@github-actions github-actions bot requested a review from stevearc January 6, 2025 23:17
@Landaman Landaman force-pushed the directory-custom-highlights branch from 41630b1 to 708e864 Compare January 6, 2025 23:26
@stevearc
Copy link
Owner

stevearc commented Jan 7, 2025

Thanks for the fix!

@stevearc stevearc merged commit a6a4f48 into stevearc:master Jan 7, 2025
18 checks passed
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.

2 participants