Enable copy and paste in vim mode
This commit is contained in:
parent
d094d1d891
commit
082036161f
10 changed files with 183 additions and 34 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue