From 486de96751ed7940e276566fd9e235b446135495 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 16 Sep 2013 18:05:44 +0800 Subject: [PATCH] Make accented character suggestion work for multiple cursors. --- src/editor.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index ce36240de..8a8fb4091 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -713,9 +713,7 @@ class Editor extends View # Work around of the accented character suggestion feature in OS X. selectedLength = @hiddenInput[0].selectionEnd - @hiddenInput[0].selectionStart if selectedLength is 1 and lastInput is @hiddenInput.val() - position = @getCursorScreenPosition() - position.column -= 1 - @selectToScreenPosition(position) + @selectLeft() lastInput = e.originalEvent.data @insertText(lastInput)