Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions asyncgit/src/sync/remotes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ fn remote_callbacks<'a>(
});

let mut first_call_to_credentials = true;
// This boolean is used to avoid multiple call to credentials callback.
// If credentials are bad, we don't ask the user to re-fill his creds. We push an error and he will be able to restart his action (for example a push) and retype his creds.
// This boolean is used to avoid multiple calls to credentials callback.
// If credentials are bad, we don't ask the user to re-fill their creds. We push an error and they will be able to restart their action (for example a push) and retype their creds.
// This behavior is explained in a issue on git2-rs project : https://github.com/rust-lang/git2-rs/issues/347
// An implementation reference is done in cargo : https://github.com/rust-lang/cargo/blob/9fb208dddb12a3081230a5fd8f470e01df8faa25/src/cargo/sources/git/utils.rs#L588
// There is also a guide about libgit2 authentication : https://libgit2.org/docs/guides/authentication/
Expand Down
12 changes: 10 additions & 2 deletions src/components/select_branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,20 @@ impl DrawableComponent for SelectBranchComponent {
.block(
Block::default()
.title(strings::SELECT_BRANCH_POPUP_MSG)
.borders(Borders::ALL)
.border_type(BorderType::Thick),
.border_type(BorderType::Thick)
.borders(Borders::ALL),
)
.alignment(Alignment::Left),
area,
);

ui::draw_scrollbar(
f,
area,
&self.theme,
self.branch_names.len(),
self.scroll_top.get(),
);
}

Ok(())
Expand Down
4 changes: 2 additions & 2 deletions src/ui/scrollbar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tui::{
buffer::Buffer,
layout::{Margin, Rect},
style::Style,
symbols::{block::FULL, line::THICK_VERTICAL},
symbols::{block::FULL, line::DOUBLE_VERTICAL},
widgets::Widget,
Frame,
};
Expand Down Expand Up @@ -50,7 +50,7 @@ impl Widget for Scrollbar {
}

for y in area.top()..area.bottom() {
buf.set_string(right, y, THICK_VERTICAL, self.style_bar);
buf.set_string(right, y, DOUBLE_VERTICAL, self.style_bar);
}

let max_pos = self.lines.saturating_sub(area.height);
Expand Down