From 7e6566b85b742cf206b4bc78b8ad4470f92dead4 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 31 Jan 2011 08:19:44 +0100 Subject: [PATCH] moveTextAreaToCursor after updating cursor, to get right position Conflicts: lib/ace/editor.js --- lib/ace/editor.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 9e2ea6db..f64f63db 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -280,17 +280,17 @@ var Editor =function(renderer, session) { }; this.onCursorChange = function(e) { - this.$highlightBrackets(); - - // move text input over the cursor - // this is required for iOS and IME - this.renderer.moveTextAreaToCursor(this.textInput.getElement()); - this.renderer.updateCursor(this.getCursorPosition(), this.$overwrite); if (!this.$blockScrolling && (!e || !e.blockScrolling)) { this.renderer.scrollCursorIntoView(); } + + // move text input over the cursor + // this is required for iOS and IME + this.renderer.moveTextAreaToCursor(this.textInput.getElement()); + + this.$highlightBrackets(); this.$updateHighlightActiveLine(); };