]> git.lyx.org Git - features.git/blobdiff - src/BufferView.cpp
Fix next-inset-toggle after scrolling work.
[features.git] / src / BufferView.cpp
index abaa00fca0cf16a75e03ccad9aa433e26320d72b..d14406f55dcdf2c73861ac9cebd81ea8907f9da0 100644 (file)
@@ -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;
        }