[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kate/part
From: Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date: 2007-04-26 17:07:44
Message-ID: 1177607264.041457.1835.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 658309 by mwoehlke:
Fix selecting 0,0 in Word selection mode.
M +1 -1 kateviewinternal.cpp
--- branches/KDE/3.5/kdelibs/kate/part/kateviewinternal.cpp #658308:658309
@@ -2083,7 +2083,7 @@
KateTextLine::Ptr l = m_doc->kateTextLine( newCursor.line() );
c = newCursor.col();
- if ( c < m_doc->textLine( newCursor.line() ).length()
+ if ( c > 0 && c < m_doc->textLine( newCursor.line() ).length()
&& m_doc->highlight()->isInWord( l->getChar( c ) )
&& m_doc->highlight()->isInWord( l->getChar( c-1 ) ) ) {
for ( c -= 2; c >= 0; c-- )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic