[LyX/master] Do not show completion cursor if completion is inactive

Richard Kimberly Heck rikiheck at lyx.org
Mon Feb 8 23:45:07 UTC 2021


commit 080b5107c719b6758a1419f9ac7956d65b521c20
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Mon Feb 8 18:00:31 2021 -0500

    Do not show completion cursor if completion is inactive
---
 src/insets/InsetTabular.cpp |    3 ++-
 src/insets/InsetText.cpp    |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index bf67e2a..715fa6e 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -7638,7 +7638,8 @@ bool InsetTabular::automaticPopupCompletion() const
 
 bool InsetTabular::showCompletionCursor() const
 {
-	return lyxrc.completion_cursor_text;
+	return lyxrc.completion_cursor_text &&
+		(lyxrc.completion_inline_text || lyxrc.completion_popup_text);
 }
 
 
diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index 9e04b57..5504a2d 100644
--- a/src/insets/InsetText.cpp
+++ b/src/insets/InsetText.cpp
@@ -1184,7 +1184,8 @@ bool InsetText::automaticPopupCompletion() const
 
 bool InsetText::showCompletionCursor() const
 {
-	return lyxrc.completion_cursor_text;
+	return lyxrc.completion_cursor_text &&
+		(lyxrc.completion_inline_text || lyxrc.completion_popup_text);
 }
 
 


More information about the lyx-cvs mailing list