Lines 2155-2165
Link Here
|
2155 |
_wordSelectionMode = true; |
2155 |
_wordSelectionMode = true; |
2156 |
|
2156 |
|
2157 |
// find word boundaries... |
2157 |
// find word boundaries... |
|
|
2158 |
QChar selClass = charClass(_image[i].character); |
2158 |
{ |
2159 |
{ |
2159 |
// find the start of the word |
2160 |
// find the start of the word |
2160 |
int x = bgnSel.x(); |
2161 |
int x = bgnSel.x(); |
2161 |
while ( ((x>0) || (bgnSel.y()>0 && (_lineProperties[bgnSel.y()-1] & LINE_WRAPPED) )) |
2162 |
while ( ((x>0) || (bgnSel.y()>0 && (_lineProperties[bgnSel.y()-1] & LINE_WRAPPED) )) |
2162 |
&& !isCharBoundary(_image[i-1].character) ) |
2163 |
&& charClass(_image[i-1].character) == selClass ) |
2163 |
{ |
2164 |
{ |
2164 |
i--; |
2165 |
i--; |
2165 |
if (x>0) |
2166 |
if (x>0) |
Lines 2177-2184
Link Here
|
2177 |
// find the end of the word |
2178 |
// find the end of the word |
2178 |
i = loc( endSel.x(), endSel.y() ); |
2179 |
i = loc( endSel.x(), endSel.y() ); |
2179 |
x = endSel.x(); |
2180 |
x = endSel.x(); |
2180 |
while( ((x<_usedColumns-1) || (endSel.y()<_usedLines-1 && (_lineProperties[endSel.y()] & LINE_WRAPPED) )) |
2181 |
while( ((x<_usedColumns-1) || (endSel.y()<_usedLines-1 && (_lineProperties[endSel.y()] & LINE_WRAPPED) )) |
2181 |
&& !isCharBoundary(_image[i+1].character) ) |
2182 |
&& charClass(_image[i+1].character) == selClass ) |
2182 |
{ |
2183 |
{ |
2183 |
i++; |
2184 |
i++; |
2184 |
if (x<_usedColumns-1) |
2185 |
if (x<_usedColumns-1) |