Fixed issue #10899: bugfixes for t3editor codecompletion (credits to Stephan Petzl...
authorTobias Liebig <mail@etobi.de>
Wed, 15 Apr 2009 20:02:32 +0000 (20:02 +0000)
committerTobias Liebig <mail@etobi.de>
Wed, 15 Apr 2009 20:02:32 +0000 (20:02 +0000)
* fixed codecompletion bug: typed string was replaced wrong when user waited for about 2 seconds before hitting return

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5320 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/t3editor/jslib/ts_codecompletion/tscodecompletion.js

index 775afe4..89116a2 100644 (file)
@@ -570,6 +570,7 @@ var TsCodeCompletion = function(codeMirror,outerdiv) {
        // insert selected word into text from codecompletebox\r
        function insertCurrWordAtCursor() {\r
                var word = proposals[currWord].word;\r
+               mirror.editor.highlightAtCursor();\r
                var cursorNode = getCursorNode();\r
                if (cursorNode.currentText \r
                           && cursorNode.currentText != '.' \r