Fix single column vim selections
This commit is contained in:
parent
b596b4153f
commit
1c36134cf9
6 changed files with 38 additions and 6 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue