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

πŸ› When a line of text is truncated, delta inserts a hardcoded β†’ character in reverse text #1790

Open
pedronavf opened this issue Aug 9, 2024 · 0 comments

Comments

@pedronavf
Copy link

When delta truncates a line because wrap-max-lines has been reached, it adds a hardcoded β†’ character that can't be customized like --wrap-left-symbol and that doesn't follow inline-hint-style.

The truncation character is defined in config.rs as:
truncation_symbol: format!("{}β†’{}", ansi::ANSI_SGR_REVERSE, ansi::ANSI_SGR_RESET),

Ideally it would follow inline-hint-style and the character could be customized with something like --truncation-symbol

In the screenshot below, note how the wrap markings have a magenta background and the truncation symbol shows with a white background.

delta_truncation

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

1 participant