Skip to content

Commit a5b4789

Browse files
authoredFeb 14, 2020
Fix "Multiselect repeated in terminal" (#253)
* Update sisteransi to 1.0.4 * Use sisteransi lines function to clear lines Fixes #175
1 parent 9b14789 commit a5b4789

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎lib/util/clear.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ module.exports = function(prompt, perLine = process.stdout.columns) {
1414
rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);
1515
}
1616

17-
return (erase.line + cursor.prevLine()).repeat(rows - 1) + erase.line + cursor.to(0);
17+
return erase.lines(rows);
1818
};

‎package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
],
3838
"dependencies": {
3939
"kleur": "^3.0.3",
40-
"sisteransi": "^1.0.3"
40+
"sisteransi": "^1.0.4"
4141
},
4242
"devDependencies": {
4343
"@babel/cli": "^7.5.5",

0 commit comments

Comments
 (0)
Please sign in to comment.