JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix crash (left-arrow past invisible/broken node)
[peach-html5-editor.git] / editor.coffee
index 41d81c3..6a9d361 100644 (file)
@@ -359,7 +359,7 @@ find_prev_cursor_position = (tree, n, i) ->
        if found?
                if cursor_to_xyh found, found.text.length # text visible?
                        return [found, found.text.length]
-               return find_prev_cursor_position tree, ret[0], 0
+               return find_prev_cursor_position tree, found, 0
        return null
 
 find_loc_cursor_position = (tree, loc) ->