From 45445714902d0601efb992a7d8f40ad30a4ebaf1 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sun, 18 Nov 2012 08:25:19 +0100 Subject: [PATCH] term generation: only keep @ when not at start of term --- 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 b239eb9e..beee33bb 100644 --- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -517,8 +517,10 @@ bool TextSplit::text_to_words(const string &in) return false; curspanglue = cc; m_inNumber = false; + m_wordStart += it.appendchartostring(m_span); + } else { + goto SPACE; } - m_wordStart += it.appendchartostring(m_span); break; case '_': if (m_wordLen) {