fix console double click crash
This commit is contained in:
parent
1e5b2995af
commit
743afbed6d
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public class GuiConsole extends Gui implements FieldCallback {
|
||||||
|
|
||||||
protected void onDoubleClick() {
|
protected void onDoubleClick() {
|
||||||
if(this.sel_start >= 0 && this.sel_end == this.sel_start) {
|
if(this.sel_start >= 0 && this.sel_end == this.sel_start) {
|
||||||
for(int z = this.sel_start; z >= 0; z--) {
|
for(int z = this.sel_start - 1; z >= 0; z--) {
|
||||||
char c = this.text.charAt(z);
|
char c = this.text.charAt(z);
|
||||||
if(c == Color.COMMAND) {
|
if(c == Color.COMMAND) {
|
||||||
for(int n = z + 1; n < this.text.length(); n++) {
|
for(int n = z + 1; n < this.text.length(); n++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue