feat: dim whitespace markers and configure scope and newlines
This commit is contained in:
@@ -1140,6 +1140,15 @@ impl DiffState {
|
||||
.is_some_and(|file| file.loaded)
|
||||
}
|
||||
|
||||
/// Source rows without the editor's virtual terminal row, preserving real empty lines.
|
||||
pub(crate) fn after_source_lines<'a>(&self, file: &'a ChangedFile) -> &'a [String] {
|
||||
if self.live_files.contains(&self.file) {
|
||||
live_content(&file.after, file.after_eof)
|
||||
} else {
|
||||
&file.after
|
||||
}
|
||||
}
|
||||
|
||||
fn prepare_selected_file(&mut self) {
|
||||
if self.refresh_pending() {
|
||||
self.align_file();
|
||||
|
||||
Reference in New Issue
Block a user