Summary: | Cursor position not updated after a keyboard text-search | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Per (phobie) <kdebugs.phobie> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Per (phobie)
2009-11-08 14:54:53 UTC
SVN commit 1046480 by pletourn: Invalidate the selection anchor when the selection is set programmatically BUG:213693 M +12 -8 kateviewinternal.cpp M +1 -0 kateviewinternal.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1046480 Hi Pascal, this commit is not entirely correct, see http://bugs.kde.org/show_bug.cgi?id=156126 If you search with ctrl+f, the matching text is selected and the cursor is set correctly to the end of the selection. Now close the search, the selection is still there. Now if you type SHIFT+Right to extend the selection, it is invalidated first. This is because your patch always resets the anchors in ::viewSelectionChanged(). As I see it, this is wrong. If we have a selection, shouldn't the anchors be set accordingly? 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 |