Working change and delete in line mode
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user