From defe82a74d1742f7f723e2c8311905577320342a Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Sun, 4 Nov 2018 14:11:01 +0100 Subject: [PATCH] Fix test/tests/show/test-longlines Although it worked correct on the server, it did not in terminals which have a number of columns set, like those connected to a screen. The test now sets `-width 2000' for mhl(1) via the test config. --- test/tests/show/test-longlines | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tests/show/test-longlines b/test/tests/show/test-longlines index c15c1cb..f6ae126 100644 --- a/test/tests/show/test-longlines +++ b/test/tests/show/test-longlines @@ -26,6 +26,11 @@ addcr() { } +# Ensure lines won't get folded +echo "mhl: -width 2000" >> "$MMH/profile" +trap 'printf "/^mhl:/d\nw\nq\n" | ed - "$MMH/profile"' 0 1 2 15 + + len=997 # Write message with long header line -- 1.7.10.4