From f3326796a1c9d3a3b118c36afcda24fb07f15b6d Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 27 Dec 2007 09:44:39 +0000 Subject: [PATCH] Fix next-inset-toggle after scrolling work. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22321 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index abaa00fca0..d14406f55d 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1194,9 +1194,11 @@ bool BufferView::dispatch(FuncRequest const & cmd) if (!cur.result().dispatched()) cur.dispatch(tmpcmd); - if (cur.result().dispatched()) - cur.clearSelection(); - + if (!cur.result().dispatched()) + // It did not work too; no action needed. + break; + cur.clearSelection(); + processUpdateFlags(Update::SinglePar | Update::FitCursor); break; } -- 2.39.2