Working change and delete in line mode

This commit is contained in:
Keith Simmons
2022-05-26 17:02:05 -07:00
parent d7d17b2148
commit f8f316cc64
7 changed files with 27 additions and 7 deletions
+1 -1
View File
@@ -488,7 +488,7 @@ impl EditorElement {
line_mode: bool,
cx: &mut PaintContext,
) {
if range.start != range.end {
if range.start != range.end || line_mode {
let row_range = if range.end.column() == 0 {
cmp::max(range.start.row(), start_row)..cmp::min(range.end.row(), end_row)
} else {
+1 -1
View File
@@ -38,7 +38,7 @@ impl SelectionsCollection {
display_map,
buffer,
next_selection_id: 1,
line_mode: true,
line_mode: false,
disjoint: Arc::from([]),
pending: Some(PendingSelection {
selection: Selection {