mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-31 18:37:34 +01:00
remove console
This commit is contained in:
parent
d4bf6100a3
commit
2804b6ae56
@ -89,7 +89,6 @@ export function TerminalInput({ terminal, router, player }: IProps): React.React
|
|||||||
break;
|
break;
|
||||||
case "deletewordbefore": // Delete rest of word before the cursor
|
case "deletewordbefore": // Delete rest of word before the cursor
|
||||||
for (let delStart = start - 1; delStart > -2; --delStart) {
|
for (let delStart = start - 1; delStart > -2; --delStart) {
|
||||||
console.log(delStart, inputText.charAt(delStart), start - 1)
|
|
||||||
if ((inputText.charAt(delStart) === " " || delStart === -1) && delStart !== start - 1) {
|
if ((inputText.charAt(delStart) === " " || delStart === -1) && delStart !== start - 1) {
|
||||||
saveValue(inputText.substr(0, delStart + 1) + inputText.substr(start), () => {
|
saveValue(inputText.substr(0, delStart + 1) + inputText.substr(start), () => {
|
||||||
// Move cursor to correct location
|
// Move cursor to correct location
|
||||||
|
Loading…
Reference in New Issue
Block a user