@register(u'delete-char')
def delete_char(event):
 deleted = event.current_buffer.delete(count=event.arg)
 if (not deleted):
  event.cli.output.bell()

@ register ( u'delete-char' ) def delete_char ( event ) : deleted = event . current_buffer . delete ( count = event . arg ) if ( not deleted ) : event . cli . output . bell ( )
delete character before the cursor .