Skip to content

Commit 0469012

Browse files
fix bug in sefun/border->format_border where it added a '0' instead of right wall symbol and update tests for new sefun/color->color_gradient method
1 parent 6c71d18 commit 0469012

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

lib/secure/sefun/border.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ string *format_border (mapping rawData, mapping b, int width, string ansi) {
260260
line[1+fHeader..2] +
261261
SEFUN->apply_gradient(line[3..l+1], colors[3..l+1]) +
262262
line[l+2..<2+fHeader] +
263-
SEFUN->apply_gradient(line[<1+fHeader..<1], colors[<1+fHeader..<1]);
263+
SEFUN->apply_gradient(line[<1+fHeader..<1], colors[<1+fHeader..<1]) + ""; // empty string at the end prevents a strange bug where it inserts '0' instead of correct right wall symbol
264264
} else if (ansi) {
265265
line = "\e[36m" + line[0..fHeader] + "\e[0;37;40m" +
266266
line[1+fHeader..2] +

0 commit comments

Comments
 (0)