Don't include start of a line when selection ends at start of line

This commit is contained in:
Antonio Scandurra 2023-10-10 19:00:05 +02:00
parent 5cf92980f0
commit b366592878
3 changed files with 30 additions and 32 deletions

View file

@ -4,6 +4,7 @@ use std::cmp::{self, Reverse};
use std::fmt::Write;
use std::ops::Range;
#[allow(dead_code)]
fn summarize(buffer: &BufferSnapshot, selected_range: Range<impl ToOffset>) -> String {
#[derive(Debug)]
struct Match {