mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +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_)
|
if (cmd.action == LFUN_SCREEN_DOWN && scrolled < height_)
|
||||||
p = Point(width_, height_);
|
p = Point(width_, height_);
|
||||||
Cursor old = cur;
|
Cursor old = cur;
|
||||||
|
bool const in_texted = cur.inTexted();
|
||||||
cur.reset(buffer_.inset());
|
cur.reset(buffer_.inset());
|
||||||
updateMetrics();
|
updateMetrics();
|
||||||
buffer_.changed();
|
buffer_.changed();
|
||||||
d->text_metrics_[&buffer_.text()].editXY(cur, p.x_, p.y_);
|
d->text_metrics_[&buffer_.text()].editXY(cur, p.x_, p.y_);
|
||||||
//FIXME: what to do with cur.x_target()?
|
//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();
|
cur.finishUndo();
|
||||||
if (update)
|
if (update)
|
||||||
processUpdateFlags(Update::Force | Update::FitCursor);
|
processUpdateFlags(Update::Force | Update::FitCursor);
|
||||||
|
Loading…
Reference in New Issue
Block a user