diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-01-29 20:28:10 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-01-29 20:28:10 +0000 |
commit | af7a5d2d67a2eb42e67a1775ba4a83d9b5ce6939 (patch) | |
tree | 1ec4c70d17967841a72593329344db9ea4594c67 /desktop | |
parent | 385d9170d993f67c40b9ec2b69dab45e7bd96027 (diff) | |
download | netsurf-af7a5d2d67a2eb42e67a1775ba4a83d9b5ce6939.tar.gz netsurf-af7a5d2d67a2eb42e67a1775ba4a83d9b5ce6939.tar.bz2 |
Don't redraw if selection is unchanged.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/textarea.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index 725c911b7..872c6382b 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -172,6 +172,9 @@ static bool textarea_select(struct textarea *ta, int c_start, int c_end) c_end = swap; } + if (ta->sel_start == c_start && ta->sel_end == c_end) + return true; + ta->sel_start = c_start; ta->sel_end = c_end; |