]> git.lyx.org Git - features.git/commitdiff
Fix a bug when selecting a cell in InsetTabular
authorScott Kostyshak <skostysh@lyx.org>
Wed, 12 Dec 2012 08:44:38 +0000 (03:44 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Wed, 12 Dec 2012 08:46:12 +0000 (03:46 -0500)
Fix the following bug:
When in tabular, enter "ab" in a cell. Place the cursor before "b". Hold
shift and press <right>, then (still holding shift) <right> again. On
the second <right> nothing appears to happen.

Related to #1802.

src/insets/InsetTabular.cpp

index ec1cd54a240e0e52f3a11f663954b5f511f54d86..a38c4b27a392872fbf7044d3111bc0e138a675d2 100644 (file)
@@ -4029,6 +4029,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
                        if (select_whole && !empty_cell){
                                getText(cur.idx())->selectAll(cur);
                                cur.dispatched();
+                               cur.screenUpdateFlags(Update::Force | Update::FitCursor);
                                break;
                        }