From 63ce3e05b1e43795223331ee68d6b8257e3b134e Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Sat, 12 Mar 2016 21:13:45 -0500 Subject: [PATCH] fix crash (left-arrow past invisible/broken node) --- editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -> -- 1.7.10.4