Enable copy and paste in vim mode

This commit is contained in:
Keith Simmons 2022-05-19 17:42:30 -07:00
parent d094d1d891
commit 082036161f
10 changed files with 183 additions and 34 deletions

View file

@ -3,7 +3,7 @@ mod element;
pub mod items;
pub mod movement;
mod multi_buffer;
mod selections_collection;
pub mod selections_collection;
#[cfg(test)]
mod test;

View file

@ -489,7 +489,7 @@ impl EditorElement {
cx: &mut PaintContext,
) {
if range.start != range.end || line_mode {
let row_range = if range.end.column() == 0 {
let row_range = if range.end.column() == 0 && !line_mode {
cmp::max(range.start.row(), start_row)..cmp::min(range.end.row(), end_row)
} else {
cmp::max(range.start.row(), start_row)..cmp::min(range.end.row() + 1, end_row)