@register(u'backward-delete-char')
def backward_delete_char(event):
 if (event.arg < 0):
  deleted = event.current_buffer.delete(count=(- event.arg))
 else:
  deleted = event.current_buffer.delete_before_cursor(count=event.arg)
 if (not deleted):
  event.cli.output.bell()

@ register ( u'backward-delete-char' ) def backward_delete_char ( event ) : if ( event . arg < 0 ) : deleted = event . current_buffer . delete ( count = ( - event . arg ) ) else : deleted = event . current_buffer . delete_before_cursor ( count = event . arg ) if ( not deleted ) : event . cli . output . bell ( )
delete the character behind the cursor .