Commit 5a5cebfb authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32941

parent 2e380570
...@@ -2729,6 +2729,7 @@ ...@@ -2729,6 +2729,7 @@
}; };
CellEditor.prototype.Set_CursorPosInCompositeText = function (nPos) { CellEditor.prototype.Set_CursorPosInCompositeText = function (nPos) {
if (-1 !== this.beginCompositePos) { if (-1 !== this.beginCompositePos) {
nPos = Math.min(nPos, this.compositeLength);
this._moveCursor(kPosition, this.beginCompositePos + nPos); this._moveCursor(kPosition, this.beginCompositePos + nPos);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment