commit ffcd38ef968a1110c83806586d9af8c75c21d5c4
parent 088704a76863f769ef789fa07005779c6086b47d
Author: William Casarin <jb55@jb55.com>
Date: Wed, 23 Jul 2025 09:10:15 -0700
Merge prevent crash when switching cols from fernando #997
Fernando LoĢpez Guevara (1):
fix(columns): prevent crash when switching to account with no columns
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/crates/notedeck_columns/src/column.rs b/crates/notedeck_columns/src/column.rs
@@ -191,6 +191,9 @@ impl Columns {
#[inline]
pub fn column_mut(&mut self, ind: usize) -> &mut Column {
+ if self.columns.is_empty() {
+ self.new_column_picker();
+ }
&mut self.columns[ind]
}