summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-01-29 20:28:10 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-01-29 20:28:10 +0000
commitaf7a5d2d67a2eb42e67a1775ba4a83d9b5ce6939 (patch)
tree1ec4c70d17967841a72593329344db9ea4594c67 /desktop
parent385d9170d993f67c40b9ec2b69dab45e7bd96027 (diff)
downloadnetsurf-af7a5d2d67a2eb42e67a1775ba4a83d9b5ce6939.tar.gz
netsurf-af7a5d2d67a2eb42e67a1775ba4a83d9b5ce6939.tar.bz2
Don't redraw if selection is unchanged.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/textarea.c3
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;