       "Cursor position: #{position}"
 
     positionOrRange += " (locked)" if @textController.textView.lockedRange?
-    lines = [positionOrRange, ""]
+    positionOrRange
 
-    if position?
-      [container, offset] = @textController.textView.findContainerAndOffsetForPosition(position)
-      lines.push("textView#findContainerAndOffsetForPosition:")
-      lines.push(indent(@renderSelection(container, offset)))
+  renderSelections: ->
+    position = @textController.getPosition()
+    return unless position?
+    lines = []
+
+    [container, offset] = @textController.textView.findContainerAndOffsetForPosition(position)
+    lines.push("textView#findContainerAndOffsetForPosition:")
+    lines.push(indent(@renderSelection(container, offset)))
+
+    selection = window.getSelection()
+    if selection.rangeCount > 0
+      {startContainer, startOffset} = selection.getRangeAt(0)
       lines.push("")
-
-      selection = window.getSelection()
-      if selection.rangeCount > 0
-        {startContainer, startOffset} = selection.getRangeAt(0)
-        lines.push("window#getSelection:")
-        lines.push(indent(@renderSelection(startContainer, startOffset)))
-        lines.push("")
-
-    @textController.text.eachRun (run) ->
-      for key, value of run
-        lines.push("#{key}: #{JSON.stringify(value)}")
-      lines.push("")
+      lines.push("window#getSelection:")
+      lines.push(indent(@renderSelection(startContainer, startOffset)))
 
     lines.join("\n")
 

    textView#findPositionFromContainerAtOffset: #{position}
    """

  indent = (string) ->
    string.replace(/^/mg, " ")

    @element.appendChild(document.createTextNode(@renderDebugOutput()))

  renderDebugOutput: ->
    output = []
    for section in ["PositionOrRange", "Selections", "TextRuns"]
      if result = @["render#{section}"].call(this)
        output.push(result)
    output.join("\n\n")

  renderPositionOrRange: ->
    positionOrRange = if selectedRange = @textController.getSelectedRange()
      "Selected range: #{JSON.stringify(selectedRange)}"
    else
