Version: latest svn (using KDE Devel)
Installed from: Compiled sources
OS: Linux (x86_64) release 2.6.22-5-default
When I ctrl-A on this document ( view source in konqueror on http://doc.trolltech.com/4.3-snapshot/qfiledialog.html )
and then ctrl-A, only some text is selected.
When I put focus on another window or resize, only then all text gets selected.
Created attachment 22357 [details]
patch for review
The attached patch appears to fix the problem, but please review, and tell me
whether it's ok to commit.
Problem seems to be that KateViewInternal::tagLines() (called from
KateView::setSelection()) never updates the view cache. While at it, I removed
a bit of redundant logic in KateViewInternal::updateSelection(). This calls
KateView::clearSelection(), which is (now) enough to update the view.
SVN commit 745398 by rodda:
Commit slightly modified version of patch provided by Thomas Friedrichsmeier to fix bug 153375 (select all not correctly rendered)
The only modification was to place the update call after the sanity checks, if the tagging was not for lines on the view, we don't need to update at this point.
BTW, much of this will have to be re-done post 4.0 in order to fix an entirely separate issue (memory usage terrible for large files without newlines)
M +2 -6 kateviewinternal.cpp
WebSVN link: http://websvn.kde.org/?view=rev&revision=745398