[Konsole-devel] [Bug 108107] Ignore end word @ when selecting symbolic links with mouse double click
Kurt V.Hindenburg
kurt.hindenburg at kdemail.net
Fri Jul 8 20:13:59 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=108107
kurt.hindenburg kdemail net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
------- Additional Comments From kurt.hindenburg kdemail net 2005-07-08 22:13 -------
SVN commit 432870 by hindenburg:
Don't select @ at the end of a word when double-clicking; helpful for symbolic links in dir listings.
BUG: 108107
M +5 -0 TEWidget.cpp
--- trunk/KDE/kdebase/konsole/konsole/TEWidget.cpp #432869:432870
@ -1594,6 +1594,11 @
while( ((x<columns-1) || (endSel.y()<lines-1 && m_line_wrapped[endSel.y()])) && charClass(image[i+1].c) == selClass )
{ i++; if (x<columns-1) x++; else {x=0; endSel.ry()++; } }
endSel.setX(x);
+
+ // In word selection mode don't select @ (64) if at end of word.
+ if ( ( QChar( image[i].c ) == ' ' ) && ( ( endSel.x() - bgnSel.x() ) > 0 ) )
+ endSel.setX( x - 1 );
+
actSel = 2; // within selection
emit extendSelectionSignal( endSel.x(), endSel.y() );
emit endSelectionSignal(preserve_line_breaks);
More information about the konsole-devel
mailing list