From c5cde12e48a330c9b04a029e70987ce7f0185367 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Wed, 21 Apr 2021 07:18:37 -0400 Subject: Add inline-hint-style option, do not use syntect styles DNW Why are the inline hint symbols having the background color set to white when the background color is None in the style struct? --- src/cli.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index fba95320..033178d5 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -399,6 +399,12 @@ pub struct Opt { /// (underline), 'ol' (overline), or the combination 'ul ol'. pub hunk_header_decoration_style: String, + #[structopt(long = "inline-hint-style", default_value = "blue")] + /// Style (foreground, background, attributes) for content added by delta to + /// the original diff such as special characters to highlight tabs, and the + /// wrap and prefix symbols used in side-by-side mode. See STYLES section. + pub inline_hint_style: String, + /// The regular expression used to decide what a word is for the within-line highlight /// algorithm. For less fine-grained matching than the default try --word-diff-regex="\S+" /// --max-line-distance=1.0 (this is more similar to `git --word-diff`). -- cgit v1.2.3