Fix a bug when selecting a cell in InsetTabular

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.

(cherry picked from commit 4b706051b7)
This commit is contained in:
Scott Kostyshak 2012-12-12 03:44:38 -05:00
parent 80a5892049
commit cf7b38ee23
2 changed files with 3 additions and 0 deletions

View File

@ -4054,6 +4054,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;
}

View File

@ -90,6 +90,8 @@ What's new
- Allow arguments in PassThru environments (bug 7646).
- Fix a few selection bugs in tabular (bug 4981).
* DOCUMENTATION AND LOCALIZATION