[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate/part
From: Anders Lund <anders () alweb ! dk>
Date: 2005-01-12 12:45:59
Message-ID: 20050112124559.BA62D1CEB7 () office ! kde ! org
[Download RAW message or body]
CVS commit by alund:
Allow finding a string at eol when searching backward.
M +9 -2 katetextline.cpp 1.90
--- kdelibs/kate/part/katetextline.cpp #1.89:1.90
@@ -245,4 +246,7 @@ bool KateTextLine::searchText (uint star
int col = startCol;
uint l = text.length();
+ // allow finding the string ending at eol
+ if ( col == m_text.length() ) startCol++;
+
do {
index = m_text.findRev( text, col, casesensitive );
@@ -272,4 +276,7 @@ bool KateTextLine::searchText (uint star
{
int col = startCol;
+
+ // allow finding the string ending at eol
+ if ( col == m_text.length() ) startCol++;
do {
index = regexp.searchRev (m_text, col);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic