Update dependencies
This commit is contained in:
parent
8f04d73314
commit
bb0c42e92f
2 changed files with 27 additions and 27 deletions
12
src/main.rs
12
src/main.rs
|
|
@ -2212,12 +2212,12 @@ impl Application for App {
|
|||
if self.config.line_numbers {
|
||||
text_box = text_box.line_numbers();
|
||||
}
|
||||
let mut popover =
|
||||
widget::popover(text_box, menu::context_menu(&self.key_binds, tab_id));
|
||||
popover = match tab.context_menu {
|
||||
Some(position) => popover.position(position),
|
||||
None => popover.show_popup(false),
|
||||
};
|
||||
let mut popover = widget::popover(text_box);
|
||||
if let Some(position) = tab.context_menu {
|
||||
popover = popover
|
||||
.popup(menu::context_menu(&self.key_binds, tab_id))
|
||||
.position(position);
|
||||
}
|
||||
tab_column = tab_column.push(popover);
|
||||
if !status.is_empty() {
|
||||
tab_column = tab_column.push(text(status).font(Font::MONOSPACE));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue