Update libcosmic

This commit is contained in:
Jeremy Soller 2024-02-26 15:19:54 -07:00
parent d4f1e1cd12
commit 09d4ca9f6a
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 158 additions and 149 deletions

View file

@ -637,7 +637,7 @@ impl App {
let mut sections = Vec::with_capacity(3 + self.color_scheme_errors.len());
sections.push(
widget::view_switcher::horizontal(&self.color_scheme_tab_model)
widget::tab_bar::horizontal(&self.color_scheme_tab_model)
.on_activate(Message::ColorSchemeTabActivate)
.into(),
);
@ -2303,7 +2303,7 @@ impl Application for App {
if tab_model.iter().count() > 1 {
tab_column = tab_column.push(
widget::container(
widget::view_switcher::horizontal(tab_model)
widget::tab_bar::horizontal(tab_model)
.button_height(32)
.button_spacing(space_xxs)
.on_activate(Message::TabActivate)

View file

@ -507,15 +507,12 @@ impl Terminal {
let start = Point::new(Line(-(grid.history_size() as i32)), Column(0));
let mut end_line = grid.bottommost_line();
while end_line.0 > 0 {
if ! grid[end_line].is_clear() {
if !grid[end_line].is_clear() {
break;
}
end_line.0 -= 1;
}
let end = Point::new(
end_line,
Column(grid.columns() - 1),
);
let end = Point::new(end_line, Column(grid.columns() - 1));
let mut selection = Selection::new(SelectionType::Lines, start, Side::Left);
selection.update(end, Side::Right);
term.selection = Some(selection);