fix 1 off table wrapping for help commands (#460)

This commit is contained in:
Darren Schroeder 2021-12-09 19:16:50 -06:00 committed by GitHub
parent 7a892ec5d7
commit 2e2d5ef0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1062,7 +1062,7 @@ pub fn draw_table(
) -> String {
// Remove the edges, if used
let termwidth = if table.theme.print_left_border && table.theme.print_right_border {
termwidth - 2
termwidth - 3
} else if table.theme.print_left_border || table.theme.print_right_border {
termwidth - 1
} else {