X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=editor.coffee;h=6a9d36175fb9c2376c5babf9aabee657b50faa2a;hb=63ce3e05b1e43795223331ee68d6b8257e3b134e;hp=41d81c37192ed2aaab23cc543430a726d67e793a;hpb=dde84cf239d827cb3a3b412d970e95bd5851216d;p=peach-html5-editor.git 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) ->