fix 1 off table wrapping for help commands (#460)
This commit is contained in:
parent
7a892ec5d7
commit
2e2d5ef0eb
|
@ -1062,7 +1062,7 @@ pub fn draw_table(
|
||||||
) -> String {
|
) -> String {
|
||||||
// Remove the edges, if used
|
// Remove the edges, if used
|
||||||
let termwidth = if table.theme.print_left_border && table.theme.print_right_border {
|
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 {
|
} else if table.theme.print_left_border || table.theme.print_right_border {
|
||||||
termwidth - 1
|
termwidth - 1
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user