parameters: (view)
return_statement: return not first_selected_region.empty()
docstring: Checks whether or not at least one selected region exists
docstring_summary: Checks whether or not at least one selected region exists
docstring_tokens: Checks whether or not at least one selected region exists
function: def has_selection(view):
      """Checks whether or not at least one selected region exists"""
      first_selected_region = view.sel()[0]
      return not first_selected_region.empty()
function_tokens: def has_selection ( view ) : first_selected_region = view . sel ( ) [ 0 ] return not first_selected_region . empty ( )