Add unit test for diagnostic + path header ordering
This commit is contained in:
parent
6ad9ff10c1
commit
ed88fdcea2
3 changed files with 216 additions and 51 deletions
|
@ -980,7 +980,11 @@ impl Workspace {
|
|||
}
|
||||
|
||||
pub fn activate_next_pane(&mut self, cx: &mut ViewContext<Self>) {
|
||||
let ix = self.panes.iter().position(|pane| pane == &self.active_pane).unwrap();
|
||||
let ix = self
|
||||
.panes
|
||||
.iter()
|
||||
.position(|pane| pane == &self.active_pane)
|
||||
.unwrap();
|
||||
let next_ix = (ix + 1) % self.panes.len();
|
||||
self.activate_pane(self.panes[next_ix].clone(), cx);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue