Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dde84cf
)
fix crash (left-arrow past invisible/broken node)
author
Jason Woofenden
<jason@jasonwoof.com>
Sun, 13 Mar 2016 02:13:45 +0000
(21:13 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Sun, 13 Mar 2016 02:13:45 +0000
(21:13 -0500)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
41d81c3
..
6a9d361
100644
(file)
--- 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]
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) ->
return null
find_loc_cursor_position = (tree, loc) ->