[LyX/master] #6401 For correct document traversal special logo chars should be treated like letters

Stephan Witt switt at lyx.org
Sun Aug 16 14:39:59 UTC 2020


commit 7ec0bdbf2819d9ec3a81b7f7cdb773986b6dff58
Author: Stephan Witt <switt at lyx.org>
Date:   Sun Aug 16 17:05:44 2020 +0200

    #6401 For correct document traversal special logo chars should be treated like letters
---
 src/insets/InsetSpecialChar.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp
index 33d3d0b..56925c4 100644
--- a/src/insets/InsetSpecialChar.cpp
+++ b/src/insets/InsetSpecialChar.cpp
@@ -672,7 +672,9 @@ bool InsetSpecialChar::isChar() const
 bool InsetSpecialChar::isLetter() const
 {
 	return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK
-		|| kind_ == NOBREAKDASH;
+		|| kind_ == NOBREAKDASH
+		|| kind_ == PHRASE_LYX || kind_ == PHRASE_LATEX
+		|| kind_ == PHRASE_TEX || kind_ == PHRASE_LATEX2E;
 }
 
 


More information about the lyx-cvs mailing list