From: Jason Woofenden Date: Sun, 13 Mar 2016 02:13:45 +0000 (-0500) Subject: fix crash (left-arrow past invisible/broken node) X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=63ce3e05b1e43795223331ee68d6b8257e3b134e fix crash (left-arrow past invisible/broken node) --- diff --git a/editor.coffee b/editor.coffee index 41d81c3..6a9d361 100644 --- a/editor.coffee +++ b/editor.coffee @@ -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) ->