Commit a0ba696b authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 35856

parent b2d8247e
......@@ -5058,15 +5058,6 @@
return {col: i - dx, row: j - dy};
}
function findEnd(col, row) {
var nc1, nc2 = col;
do {
nc1 = nc2;
nc2 = findNextCell(nc1, row, +1, 0).col;
} while (nc1 !== nc2);
return nc2;
}
function findEOT() {
var obr = t.objectRender ? t.objectRender.getMaxColRow() : new AscCommon.CellBase(-1, -1);
var maxCols = t.model.getColsCount();
......@@ -5100,7 +5091,7 @@
return findNextCell(c, r, -1, 0).col;
} // Ctrl + <-
if (dc > +2.0001 && dc < +2.9999) {
return !eot ? findEnd(c, r) : eot.col;
return (eot || findNextCell(c, r, +1, 0)).col;
} // End
if (dc < -2.0001 && dc > -2.9999) {
return 0;
......
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