public void deleteFromCursor(int p_146175_1_){
  if (text.length() != 0)   if (selectionEnd != cursorPosition)   writeText("");
 else {
    boolean var2=p_146175_1_ < 0;
    int var3=var2 ? cursorPosition + p_146175_1_ : cursorPosition;
    int var4=var2 ? cursorPosition : cursorPosition + p_146175_1_;
    String var5="";
    if (var3 >= 0)     var5=text.substring(0,var3);
    if (var4 < text.length())     var5=var5 + text.substring(var4);
    text=var5;
    if (var2)     moveCursorBy(p_146175_1_);
    if (field_175210_x != null)     field_175210_x.func_175319_a(field_175208_g,text);
  }
}

public void deleteFromCursor ( int p_146175_1_ ) { if ( text . length ( ) != 0 ) if ( selectionEnd != cursorPosition ) writeText ( "" ) ; else { boolean var2 = p_146175_1_ < 0 ; int var3 = var2 ? cursorPosition + p_146175_1_ : cursorPosition ; int var4 = var2 ? cursorPosition : cursorPosition + p_146175_1_ ; String var5 = "" ; if ( var3 >= 0 ) var5 = text . substring ( 0 , var3 ) ; if ( var4 < text . length ( ) ) var5 = var5 + text . substring ( var4 ) ; text = var5 ; if ( var2 ) moveCursorBy ( p_146175_1_ ) ; if ( field_175210_x != null ) field_175210_x . func_175319_a ( field_175208_g , text ) ; } }
delete the selected text , otherwsie deletes characters from either side of the cursor . params : delete num
