Version: (using KDE 3.5.8) Installed from: SuSE RPMs This is continuation of this report: https://bugs.kde.org/show_bug.cgi?id=122101 which unfortunately was closed and forgotten. The problem is: " When searching for a text string (in normal/non-block mode), and when that string is matched in the current document, the match is selected. This selection, however, appears to have invalid start/end positions - even though the match string looks to be properly highlighted and copy/cut works as expected with the string, there is a problem when trying to extend or contract the selection using shift + cursor keys. When trying to extend the selection using these keys the start of the selection block jumps from the start of the current match string to what seems to be the end of the prior selection block, meaning your current selection includes all the text between the previous match selection end and the new match selection end. The "previous selection end" to which the start position jumps only seems to change when you move the cursor using the arrow keys, without holding shift - if you do hold shift and modify the selection block using the arrow keys, hit find again, modify the selection, etc..., the start of the selection block always jumps to the same place. "
Redirect bug to Bernhard ;)
This is due to bug #213693. The git revision is 0ee38b230622f0e65eaaa900abfa9c9ef0291ff7 and the specific wrong code is KateViewInternal::viewSelectionChanged(). It's wrong to always invalidate the anchor.
Git commit 6e93d53c7feacc618d53ca5a79417c08a439c38c by Dominik Haumann. Committed on 08/08/2011 at 13:54. Pushed by dhaumann into branch 'master'. fix selection after search BUG: 156126 CCBUG: 213693 M +10 -7 part/view/kateviewinternal.cpp http://commits.kde.org/kate/6e93d53c7feacc618d53ca5a79417c08a439c38c
Git commit 202f5d7fb875bdac41fc778a5f3444db950513ba by Dominik Haumann. Committed on 08/08/2011 at 13:54. Pushed by dhaumann into branch 'KDE/4.7'. fix selection after search BUG: 156126 CCBUG: 213693 M +10 -7 part/view/kateviewinternal.cpp http://commits.kde.org/kate/202f5d7fb875bdac41fc778a5f3444db950513ba