delta icon indicating copy to clipboard operation
delta copied to clipboard

🐛 When a line of text is truncated, delta inserts a hardcoded → character in reverse text

Open pedronavf opened this issue 1 year ago • 0 comments

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

pedronavf avatar Aug 09 '24 05:08 pedronavf