Skip to content

Commit

Permalink
fix index
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Sep 11, 2023
1 parent efbade5 commit 1fa5275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder_kernels/customize/spyderpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def get_pdb_state(self):
hidden = self.hidden_frames(self.stack)
pdb_stack = [f for f, h in zip(pdb_stack, hidden) if not h]
# Adjust the index
pdb_index -= sum(hidden[:pdb_index])
pdb_index -= sum([bool(i) for i in hidden[:pdb_index]])

state['stack'] = (pdb_stack, pdb_index)

Expand Down

0 comments on commit 1fa5275

Please sign in to comment.