summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorThomas Otto <th1000s@posteo.net>2021-01-30 11:57:51 +0100
committerDan Davison <dandavison7@gmail.com>2021-09-19 19:39:50 -0400
commitb9952f91ccd6a016d38be0f87bdcf1bb5b06ca76 (patch)
tree9ccd69805c41b6e04bf809726721ee769badcdc5 /src/tests
parentdb04d5e4ec02ea30e208c64f6f77e1cbfccb2688 (diff)
Option to set the background extension mode to ANSI or spaces
In side-by-side mode, if `background_color_extends_to_terminal_width` is set, the left panel color is extended via spaces, but the right one via an ANSI sequence which instructs the terminal emulator to fill the background color rightwards. The command line option --line-fill-method ansi|spaces can change how the right panel background is filled. Add enums `BgShouldFill` and `BgFillMethod` to better distinguish if the background should be filled, and if so, how.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/ansi_test_utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/ansi_test_utils.rs b/src/tests/ansi_test_utils.rs
index d2db3eec..3f4fbe96 100644
--- a/src/tests/ansi_test_utils.rs
+++ b/src/tests/ansi_test_utils.rs
@@ -152,7 +152,7 @@ pub mod ansi_test_utils {
&mut None,
Some(config.null_style.paint(prefix)),
None,
- None,
+ paint::BgShouldFill::default(),
);
output_buffer
}