* lyxfind.C (LyXReplace): fixed not single-replacing characters with
casesensitive off.
+ (SearchBackward): comment out the unlocking of the inset_owner this
+ should not be needed!
2001-08-11 Dekel Tsur <dekelts@tau.ac.il>
2001-08-13 Juergen Vigna <jug@sad.it>
+ * insetcollapsable.C (edit): don't recollapse an already open inset.
+
* insettext.C: fixed problem when reinitializing LyXText by not doing
it while lt is in use and post this to the next possible time in
getLyXText().
+ (searchForward): fixed not unlocking of inset if nothing found.
+ (edit): set cursor behind right (was set -1 pos).
* insetert.C (InsetERT): init status_ also in the 3rd constructor.
if (collapsed_) {
collapsed_ = false;
+ // set this only here as it should be recollapsed only if
+ // it was already collapsed!
+ first_after_edit = true;
if (!bv->lockInset(this))
return;
bv->updateInset(this, true);
inset.edit(bv, xp, yy, button);
}
}
- first_after_edit = true;
}
Paragraph * p = par;
while(p->next())
p = p->next();
- int const pos = (p->size() ? p->size()-1 : p->size());
- lt->setCursor(bv, p, pos);
+// int const pos = (p->size() ? p->size()-1 : p->size());
+ lt->setCursor(bv, p, p->size());
}
lt->clearSelection();
finishUndo();
if (!lpar) {
if (clear)
lt = 0;
+ // we have to unlock ourself in this function by default!
+ bv->unlockInset(const_cast<InsetText *>(this));
return false;
}
lt->setCursor(bv, lpar, pos);
if (par) {
text->setCursor(bv, par, pos);
return SR_FOUND;
- } else if (text->inset_owner) {
+ }
+#if 0
+ else if (text->inset_owner) {
// test if we're inside an inset if yes unlock the inset
// and recall us with the outside LyXText!
bv->unlockInset((UpdatableInset *)text->inset_owner);
return SearchBackward(bv, bv->getLyXText(), str, cs, mw);
}
}
+#endif
return SR_NOT_FOUND;
}