Lines Matching refs:rows
28 const wrapWord = (rows, word, columns) => { argument
33 let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
39 rows[rows.length - 1] += character;
41 rows.push(character);
66 rows.push('');
73 if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
74 rows[rows.length - 2] += rows.pop();
113 let rows = [''];
117 rows[rows.length - 1] = rows[rows.length - 1].trimStart();
120 let rowLength = stringWidth(rows[rows.length - 1]);
125 rows.push('');
130 rows[rows.length - 1] += ' ';
141 rows.push('');
144 wrapWord(rows, word, columns);
150 wrapWord(rows, word, columns);
154 rows.push('');
158 wrapWord(rows, word, columns);
162 rows[rows.length - 1] += word;
166 rows = rows.map(stringVisibleTrimSpacesRight);
169 const pre = [...rows.join('\n')];