Skip to content

Commit 86522d2

Browse files
authored
Merge pull request #19 from LearnTeachCode/issue1
Fixes cursor/selection bug caused by bad search-and-replace job in PR #13 for issue #1. Now all better!
2 parents 74dcea4 + b3dbe8a commit 86522d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ editor.getSession().setMode('ace/mode/javascript');
103103
Send: (sent after creating or forking)
104104
-------------------------------------------------------------- */
105105
editor.getSession().on('change', handleLocalEditorTextChange);
106-
editor.getSession().selection.on('editorCursorChange', handleLocalEditorCursorChange);
106+
editor.getSession().selection.on('changeCursor', handleLocalEditorCursorChange);
107107
editor.getSession().on('changeScrollLeft', handleLocalEditorScrollChange);
108108
editor.getSession().on('changeScrollTop', handleLocalEditorScrollChange);
109109

0 commit comments

Comments
 (0)