@xynogen/pix-edit 0.1.9 → 0.1.10
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/package.json +1 -1
- package/src/edit.ts +5 -3
package/package.json
CHANGED
package/src/edit.ts
CHANGED
|
@@ -136,12 +136,14 @@ export function registerEditTool(
|
|
|
136
136
|
const { diffs, summary } = summarizeEditOperations(operations);
|
|
137
137
|
|
|
138
138
|
if (operations.length === 1) {
|
|
139
|
+
const op0 = operations[0];
|
|
140
|
+
if (!op0) return result;
|
|
139
141
|
setResultDetails(result, {
|
|
140
142
|
_type: "editInfo",
|
|
141
143
|
summary,
|
|
142
|
-
editLine: opEditLine(fp,
|
|
143
|
-
oldContent:
|
|
144
|
-
newContent:
|
|
144
|
+
editLine: opEditLine(fp, op0.newText),
|
|
145
|
+
oldContent: op0.oldText,
|
|
146
|
+
newContent: op0.newText,
|
|
145
147
|
language: fileLang,
|
|
146
148
|
filePath: fp,
|
|
147
149
|
});
|