From af7a5d2d67a2eb42e67a1775ba4a83d9b5ce6939 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 29 Jan 2013 20:28:10 +0000 Subject: Don't redraw if selection is unchanged. --- desktop/textarea.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop') 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; -- cgit v1.2.3