fix panic on narrow buffers (fixes #293)

pull/298/head
Stephan Dilly 4 years ago committed by Florian Dehau
parent 5a590bca74
commit 7110fe0159

@ -122,7 +122,7 @@ where
}
}) {
x += 1;
if x > tabs_area.right() {
if x >= tabs_area.right() {
break;
} else {
buf.set_string(x, tabs_area.top(), title.as_ref(), style);

Loading…
Cancel
Save