Switch to side-by-side view
--- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -656,7 +656,13 @@ break; case '#': - // Keep it only at end of word ... Special case for c# you see... + // Keep it only at the beginning of a word (hashtag), + if (m_wordLen == 0) { + m_wordLen += it.appendchartostring(m_span); + STATS_INC_WORDCHARS; + break; + } + // or at the end (special case for c# ...) if (m_wordLen > 0) { int w = whatcc(it[it.getCpos()+1]); if (w == SPACE || w == '\n' || w == '\r') {