Fix edge-cases in visual block insert
This commit is contained in:
parent
3514816ece
commit
59d1a5632f
4 changed files with 79 additions and 2 deletions
|
|
@ -232,7 +232,7 @@ impl Vim {
|
|||
s.move_with(|map, selection| {
|
||||
if last_mode.is_visual() && !mode.is_visual() {
|
||||
let mut point = selection.head();
|
||||
if !selection.reversed {
|
||||
if !selection.reversed && !selection.is_empty() {
|
||||
point = movement::left(map, selection.head());
|
||||
}
|
||||
selection.collapse_to(point, selection.goal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue