rem: if (tw_Component.currentFocus === this) tw_setSelectionRange(this._editor, beginIndex, endIndex); 
add:  if (tw_Component.currentFocus === this) { var comp = this._editor;  beginIndex -= this._getStringCount(comp.value, "\n", 0, beginIndex); endIndex -= this._getStringCount(comp.value, "\n", 0, endIndex);  if (tw_isIE) { endIndex = -(comp.value.length - this._getStringCount(comp.value, "\n") - endIndex); var r = comp.createTextRange(); var movedStart = r.moveStart("character", beginIndex); var movedEnd = r.moveEnd("character", endIndex); r.select(); } else { comp.setSelectionRange(beginIndex, endIndex); } } 
context:     setSelectionRange: function(beginIndex, endIndex) {        this._selectionOld = beginIndex + "," + endIndex;                if (tw_Component.currentFocus === this) tw_setSelectionRange(this._editor, beginIndex, endIndex);    },
meta: 5515	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5515/f92e9b34465915b5a9427afe1d7d625eccda8376/BaseText.js/clean/src/thinwire/render/web/resources/BaseText.js