feat: dim whitespace markers and configure scope and newlines

This commit is contained in:
2026-10-13 23:18:39 +02:00
parent adcc4f2656
commit 11b31d2621
10 changed files with 964 additions and 112 deletions
+9
View File
@@ -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();