@zhongqian97-code/ecode 0.5.7 → 0.5.8
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/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1910,11 +1910,18 @@ var Input = forwardRef(function Input2({ isActive, onSubmit, onChange, placehold
|
|
|
1910
1910
|
}
|
|
1911
1911
|
const before = line.slice(0, cursorCol);
|
|
1912
1912
|
const after = line.slice(cursorCol);
|
|
1913
|
+
if (after.length > 0) {
|
|
1914
|
+
return /* @__PURE__ */ jsxs3(Box3, { children: [
|
|
1915
|
+
/* @__PURE__ */ jsx3(Text3, { color: "cyan", children: prefix }),
|
|
1916
|
+
/* @__PURE__ */ jsx3(Text3, { children: before }),
|
|
1917
|
+
/* @__PURE__ */ jsx3(Text3, { inverse: true, children: after[0] }),
|
|
1918
|
+
/* @__PURE__ */ jsx3(Text3, { children: after.slice(1) })
|
|
1919
|
+
] }, idx);
|
|
1920
|
+
}
|
|
1913
1921
|
return /* @__PURE__ */ jsxs3(Box3, { children: [
|
|
1914
1922
|
/* @__PURE__ */ jsx3(Text3, { color: "cyan", children: prefix }),
|
|
1915
1923
|
/* @__PURE__ */ jsx3(Text3, { children: before }),
|
|
1916
|
-
/* @__PURE__ */ jsx3(Text3, { color: "cyan", children: CURSOR_CHAR })
|
|
1917
|
-
/* @__PURE__ */ jsx3(Text3, { children: after })
|
|
1924
|
+
/* @__PURE__ */ jsx3(Text3, { color: "cyan", children: CURSOR_CHAR })
|
|
1918
1925
|
] }, idx);
|
|
1919
1926
|
}) });
|
|
1920
1927
|
};
|