Skip to content

Commit

Permalink
fixup! Consider Jupyter index for code frames (--show-source) (#5402)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Jun 28, 2023
1 parent 1979103 commit 80f4bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff/src/message/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl Display for MessageCodeFrame<'_> {
let content_end_cell = jupyter_index
.cell(content_end_index.get())
.unwrap_or_default();
while end_index < content_end_index {
while end_index > content_end_index {
if jupyter_index.cell(end_index.get()).unwrap_or_default() == content_end_cell {
break;
}
Expand Down

0 comments on commit 80f4bc2

Please sign in to comment.