simo415/Minecraft-Console — Issue #2: Pasting over a highlighted section of the input crashes the game sometimes
Author: Fsmv
Created: 2012-02-02 00:29:04+00:00
State: open

Occurs when pasting a string over a highlighted section pushes the cursor out of string bounds.

`java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at com.sijobe.console.GuiConsole.keyTyped(GuiConsole.java:480)
at net.minecraft.src.GuiScreen.handleKeyboardInput(GuiScreen.java:137)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:109)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1328)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:694)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Thread.java:662)`