@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.
Files changed (2) hide show
  1. package/bin/migi.js +2 -1
  2. 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
- const linesFromBottom = drawnLines - 1 - curLine
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@make-u-free/migi",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Your AI right-hand agent. Works anywhere, with any LLM API.",
5
5
  "type": "module",
6
6
  "bin": {