Fix crash on small screens
This commit is contained in:
@ -171,7 +171,7 @@ impl Component for Buflist {
|
||||
let column_width = self.config.layout.buflist.column_width;
|
||||
for col in 0..max_columns {
|
||||
let x = area.y + col * column_width;
|
||||
let allow_overflow = if col == max_columns - 2 {
|
||||
let allow_overflow = if col == max_columns.saturating_sub(2) {
|
||||
self.config.layout.buflist.penultimate_right_overflow
|
||||
} else if col == max_columns - 1 {
|
||||
// Always allow the last column to overflow
|
||||
|
Reference in New Issue
Block a user