We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d3e7d commit 6e4261bCopy full SHA for 6e4261b
resources/scripts/components/server/Console.tsx
@@ -97,7 +97,7 @@ export default () => {
97
98
const command = e.currentTarget.value;
99
if (e.key === 'Enter' && command.length > 0) {
100
- setHistory(prevHistory => [ command, ...prevHistory! ]);
+ setHistory(prevHistory => [ command, ...prevHistory! ].slice(0, 32));
101
setHistoryIndex(-1);
102
103
instance && instance.send('send command', command);
0 commit comments