Discussion:
drawing highlighting
corvid
2013-01-08 03:53:17 UTC
Permalink
I was looking at draw() calls for the view, and I saw how there was a
call for every time that the mouse moved when highlighting even though
the text highlighted didn't necessarily change.

Here's quick code to demonstrate that there are plenty of redundant ones.
I don't know the iterator code well enough to know whether that's the
right place to do anything about it, though...
Sebastian Geerken
2013-01-09 13:07:44 UTC
Permalink
Post by corvid
I was looking at draw() calls for the view, and I saw how there was a
call for every time that the mouse moved when highlighting even though
the text highlighted didn't necessarily change.
Here's quick code to demonstrate that there are plenty of redundant ones.
I don't know the iterator code well enough to know whether that's the
right place to do anything about it, though...
Your patch makes sense, and I've committed it (slightly changed).

The purpose of Iterator::highlight is to change a state, and so it
should be checked, whether the state has changed at all.

Sebastian
corvid
2013-01-19 16:46:04 UTC
Permalink
For highlighting in a single word:

Loading...