There was an error while loading. Please reload this page.
1 parent e95b13d commit 5cf2e56Copy full SHA for 5cf2e56
1 file changed
src/subcommands/chat/react/inputRenderer.tsx
@@ -20,6 +20,10 @@ export function renderInputWithCursor({
20
pasteRanges,
21
lineStartPos,
22
}: RenderInputWithCursorOpts): JSX.Element {
23
+ if (fullText.length === 0 && cursorPosition === 0) {
24
+ return <>{chalk.inverse(" ")}</>;
25
+ }
26
+
27
return (
28
<Transform
29
transform={output => {
@@ -41,7 +45,6 @@ export function renderInputWithCursor({
41
45
}
42
46
43
47
44
-
48
if (cursorPosition === output.length) {
49
result += chalk.inverse(" ");
50
0 commit comments