pi-vim 0.1.1 → 0.1.3
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/index.ts +6 -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
|
-
|
|
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
|
-
|
|
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_ ";
|