summaryrefslogtreecommitdiff
path: root/kde-base/konsole/files/4.2.1-mouse-selector.patch
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-03-06 14:03:24 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2009-03-06 14:03:24 +0100
commit0247baf020a2a0b98835a068e90c038bd3cf24f1 (patch)
tree649038232599b71d345461897e6c922bf98cd210 /kde-base/konsole/files/4.2.1-mouse-selector.patch
parente0190702c2819f28915134ede700f7b839144e69 (diff)
downloadkde-0247baf020a2a0b98835a068e90c038bd3cf24f1.tar.gz
kde-0247baf020a2a0b98835a068e90c038bd3cf24f1.tar.bz2
kde-0247baf020a2a0b98835a068e90c038bd3cf24f1.zip
kdelibs + patch for mouse selector
Diffstat (limited to 'kde-base/konsole/files/4.2.1-mouse-selector.patch')
-rw-r--r--kde-base/konsole/files/4.2.1-mouse-selector.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/kde-base/konsole/files/4.2.1-mouse-selector.patch b/kde-base/konsole/files/4.2.1-mouse-selector.patch
new file mode 100644
index 00000000000..4653afb1730
--- /dev/null
+++ b/kde-base/konsole/files/4.2.1-mouse-selector.patch
@@ -0,0 +1,27 @@
+--- apps/konsole/src/TerminalDisplay.cpp 2009-02-26 11:16:35.000000000 -0300
++++ apps/konsole/src/TerminalDisplay.cpp.new 2009-03-04 09:14:54.000000000 -0300
+@@ -2155,11 +2155,12 @@
+ _wordSelectionMode = true;
+
+ // find word boundaries...
++ QChar selClass = charClass(_image[i].character);
+ {
+ // find the start of the word
+ int x = bgnSel.x();
+ while ( ((x>0) || (bgnSel.y()>0 && (_lineProperties[bgnSel.y()-1] & LINE_WRAPPED) ))
+- && !isCharBoundary(_image[i-1].character) )
++ && charClass(_image[i-1].character) == selClass )
+ {
+ i--;
+ if (x>0)
+@@ -2177,8 +2178,8 @@
+ // find the end of the word
+ i = loc( endSel.x(), endSel.y() );
+ x = endSel.x();
+- while( ((x<_usedColumns-1) || (endSel.y()<_usedLines-1 && (_lineProperties[endSel.y()] & LINE_WRAPPED) ))
+- && !isCharBoundary(_image[i+1].character) )
++ while( ((x<_usedColumns-1) || (endSel.y()<_usedLines-1 && (_lineProperties[endSel.y()] & LINE_WRAPPED) ))
++ && charClass(_image[i+1].character) == selClass )
+ {
+ i++;
+ if (x<_usedColumns-1)