           # Hide popup if more than 10 suggestions
           # TODO: Completions aren't asked for unless we show popup, so this is super hacky
           # TODO: Backspacing to yield more suggestions does not close popup
-          if editor.completer?.completions?.filtered?.length > 10
+          if editor.completer?.completions?.filtered?.length > 20
             editor.completer.detach()
 
           # Update popup CSS after it's been launched

        attackEntry.content = attackEntry.content.replace '${1:enemy}', '"${1:Enemy Name}"'
      snippetEntries.push attackEntry

    if haveFindNearest and not haveFindNearestEnemy
      spellView.translateFindNearest()



  addCodeCombatSnippets: (level, spellView, e) ->
    snippetEntries = []
    source = spellView.getSource()
    haveFindNearestEnemy = false
    haveFindNearest = false
    for group, props of e.propGroups
