diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-28 13:36:12 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-28 15:39:11 -0400 |
commit | ad9c0899c32217f42ce0b68e5191e16c69355c77 (patch) | |
tree | d89865cf0af1f1f46c058234c6df086ff930c6df /src/delta.rs | |
parent | 470fb46a0a23052ea40ddc0906175d9ca54a18cb (diff) |
Bug fix: honor bold by using "heavy" box drawing characters
This commit honors the bold style attribute by selecting characters
from the "heavy" set and then painting those without the bold
attribute set. Painting with the bold style attribute set seems to
result in incorrect rendering of the box-drawing characters: e.g. the
vertical line sections don't "meet up" (at least, in iTerm2 and
Terminal on MacOS).
Diffstat (limited to 'src/delta.rs')
-rw-r--r-- | src/delta.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/delta.rs b/src/delta.rs index 6a87f796..034ce706 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -219,7 +219,6 @@ fn handle_commit_meta_header_line( config.terminal_width, config.commit_style.ansi_term_style, decoration_ansi_term_style, - true, )?; Ok(()) } @@ -277,7 +276,6 @@ fn handle_generic_file_meta_header_line( config.terminal_width, config.file_style.ansi_term_style, decoration_ansi_term_style, - false, )?; Ok(()) } @@ -338,7 +336,6 @@ fn handle_hunk_header_line( config.terminal_width, config.hunk_header_style.ansi_term_style, decoration_ansi_term_style, - false, )?; painter.output_buffer.clear(); } |