Commit f59c3d2e authored by Julian Sparber's avatar Julian Sparber Committed by Daniel Garcia Moreno

autocomplete: fix change usernames font color to white when selection ends at...

autocomplete: fix change usernames font color to white when selection ends at the same position as the username
parent f6a30884
......@@ -332,7 +332,7 @@ impl Autocomplete {
final_pos = Some((bounds_end, final_pos.unwrap().1));
}
/* The alias ends inside a selection */
if contains(bounds.unwrap(), mark_end) {
if contains(bounds.unwrap(), mark_end - 1) {
final_pos = Some((final_pos.unwrap().0, bounds_start));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment