Juergen Spitzmueller wrote:
But it's safer to have it (it was forgotten in the other cases, probably by
me).
Here is an updated patch to fix the table regressions.
Joost
Index: insets/insettabular.C
===================================================================
--- insets/insettabular.C (revision 15086)
+++ insets/insettabular.C (working copy)
@@ -684,7 +684,10 @@
if (insertAsciiString(cur.bv(), clip, false)) {
// content has been replaced,
// so cursor might be invalid
- cur.pos() = cur.lastpos();
+ if (cur.pit() > cur.lastpit())
+ cur.pit() = cur.lastpit();
+ if (cur.pos() > cur.lastpos())
+ cur.pos() = cur.lastpos();
bvcur.setCursor(cur);
break;
}
@@ -733,8 +736,10 @@
// cursor follows cell:
cur.idx() = tabular.getCellNumber(i, j);
// select this cell only:
+ cur.pit() = 0;
cur.pos() = 0;
cur.resetAnchor();
+ cur.pit() = cur.lastpit();
cur.pos() = cur.top().lastpos();
cur.setCursor(cur);
cur.setSelection();
@@ -1757,7 +1762,10 @@
}
// cursor position might be invalid now
- cur.pos() = cur.lastpos();
+ if (cur.pit() > cur.lastpit())
+ cur.pit() = cur.lastpit();
+ if (cur.pos() > cur.lastpos())
+ cur.pos() = cur.lastpos();
cur.clearSelection();
}