Fix single column vim selections

This commit is contained in:
Conrad Irwin 2023-10-20 11:17:19 -06:00
parent b596b4153f
commit 1c36134cf9
6 changed files with 38 additions and 6 deletions

View file

@ -302,7 +302,11 @@ impl Line {
prev_x = glyph.position.x();
}
}
prev_index
if self.width() - x < x - prev_x {
prev_index + 1
} else {
prev_index
}
}
pub fn paint(