Skip to content

Commit

Permalink
Fix corner case: output too narrow to show any focus column
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jan 28, 2022
1 parent 582d5f1 commit 73c1947
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/ctl_colonnade.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ do_emit_focus_pillars <- function(x, tier_widths, cb, focus) {
}

# Emit pillars after focus pillar
start <- focus[[length(focus)]] + 1L
if (length(focus) > 0) {
start <- focus[[length(focus)]] + 1L
} else {
start <- 1L
}
end <- length(x)

# Emit non-focus pillars that fit: use offset_before
Expand Down

0 comments on commit 73c1947

Please sign in to comment.