{
dump("Left 1");
autocorrect_ = false;
+ targetx_ = false;
if (inMacroMode()) {
macroModeClose();
return true;
{
dump("Right 1");
autocorrect_ = false;
+ targetx_ = false;
if (inMacroMode()) {
macroModeClose();
return true;
int xo, yo;
getPos(xo, yo);
+ // check if we had something else in mind, if not, this is the future goal
+ if (targetx_)
+ xo = targetx_;
+ else
+ targetx_ = xo;
+
// try neigbouring script insets
// try left
if (hasPrevAtom()) {
bool MathCursor::interpret(char c)
{
//lyxerr << "interpret 2: '" << c << "'\n";
+ targetx_ = false;
if (inMacroArgMode()) {
--pos();
plainErase();
bool script(bool);
///
bool interpret(string const &);
- ///
+ ///
bool interpret(char);
///
bool toggleLimits();
bool selection_;
/// are we entering a macro name?
bool macromode_;
+ /// are we targeting a certain x coordinate, if so, which one?
+ int targetx_;
};
extern MathCursor * mathcursor;