mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Fix r28909: check for texted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28927 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1a74934610
commit
d0b6aebd39
@ -1464,12 +1464,13 @@ bool BufferView::dispatch(FuncRequest const & cmd)
|
||||
if (cmd.action == LFUN_SCREEN_DOWN && scrolled < height_)
|
||||
p = Point(width_, height_);
|
||||
Cursor old = cur;
|
||||
bool const in_texted = cur.inTexted();
|
||||
cur.reset(buffer_.inset());
|
||||
updateMetrics();
|
||||
buffer_.changed();
|
||||
d->text_metrics_[&buffer_.text()].editXY(cur, p.x_, p.y_);
|
||||
//FIXME: what to do with cur.x_target()?
|
||||
bool const update = cur.bv().checkDepm(cur, old);
|
||||
bool update = in_texted && cur.bv().checkDepm(cur, old);
|
||||
cur.finishUndo();
|
||||
if (update)
|
||||
processUpdateFlags(Update::Force | Update::FitCursor);
|
||||
|
Loading…
Reference in New Issue
Block a user