mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-21 15:18:45 +00:00
* also forward delete numbering in math hull
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23643 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ae89d2a6b4
commit
b1ac3c3e83
@ -1184,10 +1184,17 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
case LFUN_WORD_DELETE_FORWARD:
|
case LFUN_WORD_DELETE_FORWARD:
|
||||||
case LFUN_CHAR_DELETE_FORWARD:
|
case LFUN_CHAR_DELETE_FORWARD:
|
||||||
if (col(cur.idx()) + 1 == ncols()
|
if (col(cur.idx()) + 1 == ncols()
|
||||||
&& cur.pos() == cur.lastpos()
|
&& cur.pos() == cur.lastpos()) {
|
||||||
&& !label(row(cur.idx())).empty()) {
|
if (!label(row(cur.idx())).empty()) {
|
||||||
cur.recordUndoInset();
|
cur.recordUndoInset();
|
||||||
label(row(cur.idx()), docstring());
|
label(row(cur.idx()), docstring());
|
||||||
|
} else if (numbered(row(cur.idx()))) {
|
||||||
|
cur.recordUndoInset();
|
||||||
|
numbered(row(cur.idx()), false);
|
||||||
|
} else {
|
||||||
|
InsetMathGrid::doDispatch(cur, cmd);
|
||||||
|
return;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
InsetMathGrid::doDispatch(cur, cmd);
|
InsetMathGrid::doDispatch(cur, cmd);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user