From e1c3dbfeb3e42feb46793624158c017d592527cd Mon Sep 17 00:00:00 2001 From: dockes Date: Thu, 22 Sep 2005 14:09:04 +0000 Subject: [PATCH] adjust start/end of word when trimming --- 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 1687a6cd..45c6a422 100644 --- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.11 2005-09-22 11:10:11 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.12 2005-09-22 14:09:04 dockes Exp $ (C) 2004 J.F.Dockes"; #endif #ifndef TEST_TEXTSPLIT @@ -99,6 +99,7 @@ bool TextSplit::emitterm(bool isspan, string &w, int pos, case '@': case '\'': w.erase(w.length()-1); + btend--; if (btend < 0) btend=0; break; default: goto breakloop1; @@ -112,6 +113,7 @@ bool TextSplit::emitterm(bool isspan, string &w, int pos, case ',': case '\'': w.erase(w.length()-1); + btstart++; break; default: goto breakloop2;