From b88a37473f90147aa852e8a55dda79ca34d41adc Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 19 May 2019 12:33:46 +0200 Subject: [PATCH] Remove redundant condition The removed condition is always true. This amends [61efbff5/lyxgit]. --- src/Cursor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 39d9654261..50d0a220ec 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -1762,8 +1762,7 @@ bool Cursor::macroModeClose(bool cancel) // we have to resolve the macro here manually and check its arity // to put the selection behind it if arity > 0. MacroData const * data = buffer()->getMacro(atomAsMacro->name()); - if (!selection.empty() && data && data->numargs() - && data->numargs() - data->optionals() >= 0) { + if (!selection.empty() && data && data->numargs() { macroArg = true; atomAsMacro->setDisplayMode(InsetMathMacro::DISPLAY_INTERACTIVE_INIT, 1); } else -- 2.39.2