]> git.lyx.org Git - features.git/commit
When inserting math inset over selection, place cursor better
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 6 Nov 2018 07:29:22 +0000 (21:29 -1000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 7 Nov 2018 08:48:53 +0000 (22:48 -1000)
commitb0937fb93e1195c0fe523d269ae31412dc2c4044
tree870d596694941b27740af90c3a43a6357a03dbd8
parent097da3a943dc5b7df5272860662c41ed625d849a
When inserting math inset over selection, place cursor better

This is a follow up to 503c7c16.

The new argument for placing cursor after insertion of inset is:
* if inset has no cell, do nothing
* otherwise, place inset in entry cell.
  + if entry cell is not empty (we pasted a selection), go to next cell
  + if this next cell does not exit, stay after the inset.
src/Cursor.cpp
src/Cursor.h
src/mathed/InsetMathNest.cpp