mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
* Only enter inset which return true on isActive(). This is the behavior in the cursor code.
Only newly created inset were entered everytime. * Derived classes of CommandInset do not draw all cells, so return false. (fixes http://bugzilla.lyx.org/show_bug.cgi?id=3715) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18742 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
22421dffb3
commit
b7ce285f8b
@ -40,6 +40,9 @@ public:
|
|||||||
virtual docstring const screenLabel() const;
|
virtual docstring const screenLabel() const;
|
||||||
///
|
///
|
||||||
docstring const & commandname() const { return name_; }
|
docstring const & commandname() const { return name_; }
|
||||||
|
///
|
||||||
|
bool isActive() const { return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual std::auto_ptr<Inset> doClone() const;
|
virtual std::auto_ptr<Inset> doClone() const;
|
||||||
|
|
||||||
|
@ -732,7 +732,7 @@ goto_char_backwards:
|
|||||||
&& cur.inMacroMode() && cur.macroName() != "\\"
|
&& cur.inMacroMode() && cur.macroName() != "\\"
|
||||||
&& cur.macroModeClose()) {
|
&& cur.macroModeClose()) {
|
||||||
MathAtom const atom = cur.prevAtom();
|
MathAtom const atom = cur.prevAtom();
|
||||||
if (atom->asNestInset() && atom->nargs() > 0) {
|
if (atom->asNestInset() && atom->isActive()) {
|
||||||
cur.posLeft();
|
cur.posLeft();
|
||||||
cur.pushLeft(*cur.nextInset());
|
cur.pushLeft(*cur.nextInset());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user