Fix test/tests/show/test-longlines
authormarkus schnalke <meillo@marmaro.de>
Sun, 4 Nov 2018 13:11:01 +0000 (14:11 +0100)
committermarkus schnalke <meillo@marmaro.de>
Sun, 4 Nov 2018 13:11:01 +0000 (14:11 +0100)
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

index c15c1cb..f6ae126 100644 (file)
@@ -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
 len=997
 
 # Write message with long header line