Skip to content

Commit 54903cb

Browse files
committed
remove typo
1 parent 66e8994 commit 54903cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/IDE/components/ConsoleInput.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function ConsoleInput({ theme, dispatchConsoleEvent, fontSize }) {
9191
commandHistory.length - 1
9292
);
9393
cm.setValue(commandHistory[newCursor] || '');
94-
const cursorPos = cm.current.getDoc().getLine(0).length - 1;
94+
const cursorPos = cm.getDoc().getLine(0).length - 1;
9595
cm.getDoc().setCursor({ line: 0, ch: cursorPos });
9696
setCommandCursor(newCursor);
9797
}

0 commit comments

Comments
 (0)