Skip to content

Commit

Permalink
Improve display of upper tick at leftmost position
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Nov 17, 2021
1 parent aba8c7f commit ebac2dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,11 @@ fn draw_ruler<T: Write>(io: &mut TerminalIO<T>, view: &View) -> Result<()> {
// Make the bottom line with the ticks
let tick_string = {
let aln_range = view.colstart..=(view.colstart + view.seq_ncols_display() - 1);
let mut tick_string = "┌".to_owned();
let mut tick_string = if view.colstart % 10 == 0 {
"├"
} else {
"┌"
}.to_owned();
for alncol in aln_range {
tick_string.push(if (alncol + 1) % 10 == 0 { '┴' } else { '─' })
}
Expand Down

0 comments on commit ebac2dc

Please sign in to comment.