This commit is contained in:
Hakil authored and GitHub committed 2025-12-23 19:08:38 +02:00
1 parent 9bf344f760
commit ad608014d9
3 files changed
+17 -1

No files matched your search

+14
View File
@@ -3631,3 +3631,17 @@ fn style_components_will_merge_with_env_var() {
.stdout(" STDIN\n 1 test\n")
.stderr("");
}
// Test for https://github.com/sharkdp/bat/issues/3526
#[test]
fn plain_with_sized_terminal_width() {
bat()
.arg("--plain")
.arg("--terminal-width=6")
.arg("--decorations=always")
.arg("test.txt")
.assert()
.success()
.stdout("hello \nworld\n")
.stderr("");
}