From 65ff46990ee86cb7e69d67ae48a2523b8356371e Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sat, 13 Nov 2021 16:27:32 +0100 Subject: [PATCH] Fix to previous textsplit change about special dashes and apos: a few lines were removed in error --- src/common/textsplit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/textsplit.cpp b/src/common/textsplit.cpp index 61203dad..49b234c0 100644 --- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -216,7 +216,9 @@ static inline int whatcc(unsigned int c) if (c <= 127) { return charclasses[c]; } else { - if (sskip.find(c) != sskip.end()) { + if (c == 0x2010 || c == 0x2019 || c == 0x275c || c == 0x02bc) { + return c; + } else if (sskip.find(c) != sskip.end()) { return SKIP; } else if (spunc.find(c) != spunc.end()) { return SPACE;