JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix bug from recent backspace rewrite
authorJason Woofenden <jason@jasonwoof.com>
Tue, 24 May 2016 22:00:22 +0000 (18:00 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 24 May 2016 22:00:22 +0000 (18:00 -0400)
editor.coffee

index 8835a33..c6b13d6 100644 (file)
@@ -1164,7 +1164,7 @@ class PeachHTML5Editor
                        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
                        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
                                                changed = false
                                                n = @cursor.n.parent
                                                while n and n isnt block