if @cursor.n.text.length is 1 # if emptying text node
if run.length is 1 # if emptying text run (of text/br/hr/inline-block)
# remove inline-parents of @cursor.n
- block = @find_block_parent n
+ block = @find_block_parent @cursor.n
changed = false
n = @cursor.n.parent
while n and n isnt block