pi-vim 0.1.1 → 0.1.2

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/index.ts +6 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1372,10 +1372,14 @@ export class ModalEditor extends CustomEditor {
1372
1372
  const count = this.pendingCount;
1373
1373
 
1374
1374
  if (this.pendingOperator && this.pendingMotion) {
1375
- return ` NORMAL ${this.pendingOperator}${count}${this.pendingMotion}_ `;
1375
+ const prefix = this.pendingCountKind === "prefix" ? count : "";
1376
+ const opCount = this.pendingCountKind === "operator" ? count : "";
1377
+ return ` NORMAL ${prefix}${this.pendingOperator}${opCount}${this.pendingMotion}_ `;
1376
1378
  }
1377
1379
  if (this.pendingOperator) {
1378
- return ` NORMAL ${count}${this.pendingOperator}_ `;
1380
+ const prefix = this.pendingCountKind === "prefix" ? count : "";
1381
+ const opCount = this.pendingCountKind === "operator" ? count : "";
1382
+ return ` NORMAL ${prefix}${this.pendingOperator}${opCount}_ `;
1379
1383
  }
1380
1384
  if (this.pendingMotion) return ` NORMAL ${this.pendingMotion}_ `;
1381
1385
  if (this.pendingG) return " NORMAL g_ ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-vim",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Vim-style modal editing for Pi's TUI editor",
5
5
  "type": "module",
6
6
  "keywords": [