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) ->