commit 02d55ab0b3f34704d8abd62418b3cfdc54c44aaf
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Sun Sep 15 23:30:29 2019 +0200
Avoid useless test
Spotted by cppcheck
---
src/mathed/InsetMathMacro.cpp | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp
index 5e72eec..b5b0322 100644
--- a/src/mathed/InsetMathMacro.cpp
+++ b/src/mathed/InsetMathMacro.cpp
@@ -1233,7 +1233,6 @@ bool InsetMathMacro::completionSupported(Cursor const &
cur) const
return InsetMathNest::completionSupported(cur);
return lyxrc.completion_popup_math
- && displayMode() == DISPLAY_UNFOLDED
&& cur.bv().cursor().pos() == int(name().size());
}
@@ -1244,7 +1243,6 @@ bool InsetMathMacro::inlineCompletionSupported(Cursor
const & cur) const
return InsetMathNest::inlineCompletionSupported(cur);
return lyxrc.completion_inline_math
- && displayMode() == DISPLAY_UNFOLDED
&& cur.bv().cursor().pos() == int(name().size());
}