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

🐛 git show $revision:path/to/file.ext: lose syntax highlighting after "#" lines #1163

Closed
matheustavares opened this issue Aug 18, 2022 · 2 comments

Comments

@matheustavares
Copy link

Delta seems to lose syntax highlighting when running git show $revision:path/to/file.ext on a file that contains a line starting with "#":

delt

Output without pager:

$ git --no-pager show :file.c
int zero(void)
{
        return 0;
}

#include "another_file.h"

int main()
{
        return zero();
}
@matheustavares matheustavares changed the title 🐛 git show $revision:path/to/file.ext: lose syntax highlighting after lines with # 🐛 git show $revision:path/to/file.ext: lose syntax highlighting after "#" lines Aug 18, 2022
@dandavison
Copy link
Owner

Hi @matheustavares, this is actually fixed on master by #1127, but I've been a bit slack about making a release. Sorry about that -- if you're able to build from source then great, otherwise I will release soon.

@matheustavares
Copy link
Author

Thanks @dandavison ! Yes, I'll build from source :)

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

No branches or pull requests

2 participants