X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.h;h=55cc30e941ebee2097dfa690de65b9d4a0811a83;hb=22e6659780390a19174d1bf896317a5baf9e40d7;hp=5fb52638b7120f899db36d569cdf5300562b0be4;hpb=c8230ab0d0a919530c43c29395f4d9961498bf15;p=lyx.git diff --git a/src/Cursor.h b/src/Cursor.h index 5fb52638b7..55cc30e941 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -500,9 +500,9 @@ public: void setScreenPos(int x, int y); /// current offset in the top cell - /// interpret name a name of a macro. Returns true if - /// something got inserted. - bool macroModeClose(); + /// interpret name of a macro or ditch it if \c cancel is true. + /// Returns true if something got inserted. + bool macroModeClose(bool cancel = false); /// are we currently typing the name of a macro? bool inMacroMode() const; /// get access to the macro we are currently typing