1
Index: kdebase-4.2.1/apps/konsole/src/TerminalDisplay.cpp
2
===================================================================
3
--- kdebase-4.2.1.orig/apps/konsole/src/TerminalDisplay.cpp 2009-03-17 20:01:04.000000000 -0400
4
+++ kdebase-4.2.1/apps/konsole/src/TerminalDisplay.cpp 2009-03-17 20:03:23.000000000 -0400
5
@@ -2155,11 +2155,12 @@
6
_wordSelectionMode = true;
8
// find word boundaries...
9
+ QChar selClass = charClass(_image[i].character);
11
// find the start of the word
13
while ( ((x>0) || (bgnSel.y()>0 && (_lineProperties[bgnSel.y()-1] & LINE_WRAPPED) ))
14
- && !isCharBoundary(_image[i-1].character) )
15
+ && charClass(_image[i-1].character) == selClass )
20
i = loc( endSel.x(), endSel.y() );
22
while( ((x<_usedColumns-1) || (endSel.y()<_usedLines-1 && (_lineProperties[endSel.y()] & LINE_WRAPPED) ))
23
- && !isCharBoundary(_image[i+1].character) )
24
+ && charClass(_image[i+1].character) == selClass )
28
@@ -2332,15 +2333,6 @@
29
return QWidget::focusNextPrevChild( next );
32
-// Returns true upon a word boundary
33
-// TODO determine if the below charClass() is actually required
34
-bool TerminalDisplay::isCharBoundary(QChar qch) const
36
- if ( _wordCharacters.contains(qch, Qt::CaseInsensitive) ) return true;
37
- if ( qch.isSpace() ) return true;
42
QChar TerminalDisplay::charClass(QChar qch) const
44
Index: kdebase-4.2.1/apps/konsole/src/TerminalDisplay.h
45
===================================================================
46
--- kdebase-4.2.1.orig/apps/konsole/src/TerminalDisplay.h 2009-03-17 20:01:30.000000000 -0400
47
+++ kdebase-4.2.1/apps/konsole/src/TerminalDisplay.h 2009-03-17 20:04:15.000000000 -0400
49
// - Other characters (returns the input character)
50
QChar charClass(QChar ch) const;
52
- // Returns true upon a word boundary
53
- bool isCharBoundary(QChar ch) const;
57
void mouseTripleClickEvent(QMouseEvent* ev);