summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-05-28 13:36:12 -0400
committerDan Davison <dandavison7@gmail.com>2020-05-28 15:39:11 -0400
commitad9c0899c32217f42ce0b68e5191e16c69355c77 (patch)
treed89865cf0af1f1f46c058234c6df086ff930c6df /src/tests
parent470fb46a0a23052ea40ddc0906175d9ca54a18cb (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/tests')
-rw-r--r--src/tests/test_example_diffs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs
index cd9b1f12..b7f64399 100644
--- a/src/tests/test_example_diffs.rs
+++ b/src/tests/test_example_diffs.rs
@@ -226,7 +226,7 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e
fn test_commit_style_box() {
let mut options = integration_test_utils::get_command_line_options();
options.commit_style = "blue".to_string();
- options.commit_decoration_style = "blue box".to_string();
+ options.commit_decoration_style = "bold blue box".to_string();
let (output, config) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options);
ansi_test_utils::assert_line_has_foreground_color(
&output,
@@ -262,7 +262,7 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e ┃
fn test_commit_style_underline() {
let mut options = integration_test_utils::get_command_line_options();
options.commit_style = "yellow".to_string();
- options.commit_decoration_style = "yellow underline".to_string();
+ options.commit_decoration_style = "bold yellow underline".to_string();
let (output, config) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options);
ansi_test_utils::assert_line_has_foreground_color(
&output,