@make-u-free/migi 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migi.js +2 -1
- package/package.json +1 -1
package/bin/migi.js
CHANGED
|
@@ -119,7 +119,8 @@ async function readChatInput() {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
// ④ curLine の行まで戻る
|
|
122
|
-
|
|
122
|
+
// step②+③後のカーソル位置は max(新行数, 旧行数)-1 行目
|
|
123
|
+
const linesFromBottom = Math.max(drawnLines, oldDrawnLines) - 1 - curLine
|
|
123
124
|
if (linesFromBottom > 0) buf += `\x1b[${linesFromBottom}A`
|
|
124
125
|
buf += '\r'
|
|
125
126
|
|