Don't redraw if selection is unchanged.
This commit is contained in:
parent
385d9170d9
commit
af7a5d2d67
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue