ok/jj
1
0
Fork 0
forked from mirrors/jj

graphlog: don't de-indent multi-line text at end of chain

This commit is contained in:
Martin von Zweigbergk 2022-05-09 21:03:59 -07:00 committed by Martin von Zweigbergk
parent 9f6f4b4a55
commit d0ecbaf1a4
2 changed files with 5 additions and 5 deletions

View file

@ -148,7 +148,7 @@ where
self.maybe_write_pending_text()?;
}
let pad_to_index = self.edges.len();
let pad_to_index = self.edges.len() + if edges.is_empty() { 1 } else { 0 };
// Close any edges to missing nodes.
for (i, edge) in edges.iter().enumerate().rev() {
if *edge == Edge::Missing {