pi-vim 0.1.0 → 0.1.1

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