File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ const wrapString = (str, width) => {
4242
4343const outputArray = ( arr ) => arr . join ( '\n' )
4444
45- const outputWrappedWithBGRightPadArr = ( str , width ) => {
45+ const outputWrappedWithBGRightPad = ( str , width ) => {
4646 return outputArray (
4747 colorArray (
4848 rightPadArray (
4949 wrapString (
50- str . replace ( / [ \n \t ] * / gm , '' ) , width
50+ str , width
5151 ) ,
5252 width
5353 ) ,
@@ -81,11 +81,11 @@ class Pair {
8181 }
8282 combine ( ) {
8383 if ( this . too_large ) {
84- return outputWrappedWithBGRightPadArr ( `
84+ return outputWrappedWithBGRightPad ( `
8585 -- This patch section is too large to be displayed with
8686 this utility by default. If you want to show this section,
8787 add --show-large-hunks to your command for cli use --
88- ` , terminalWidth )
88+ ` . replace ( / [ \n \t ] * / gm , '' ) , terminalWidth )
8989 }
9090 // this.drawLines()
9191
You can’t perform that action at this time.
0 commit comments