+2004-02-13 Alfredo Braunstein <abraunst@lyx.org>
+
+ * cursor.C (dispatch): restore current_ before returning
+
2004-02-13 Alfredo Braunstein <abraunst@lyx.org>
* text2.C (cursorUp, cursorDown): fix coords
FuncRequest cmd = cmd0;
for (current_ = cursor_.size() - 1; current_ >= 1; --current_) {
DispatchResult res = inset()->dispatch(*this, cmd);
- if (res.dispatched())
+ if (res.dispatched()) {
+ current_ = cursor_.size() - 1;
return DispatchResult(true, true);
+ }
+
// "Mutate" the request for semi-handled requests that need
// additional handling in outer levels.
BOOST_ASSERT(current_ == 0);
DispatchResult res = bv_->text()->dispatch(*this, cmd);
//lyxerr << " result: " << res.val() << endl;
+ current_ = cursor_.size() - 1;
return res;
}