Don't redraw if selection is unchanged.

This commit is contained in:
Michael Drake 2013-01-29 20:28:10 +00:00
parent 385d9170d9
commit af7a5d2d67

View File

@ -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;