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
… (#5414)
  • Loading branch information
dhruvmanila authored Jun 28, 2023
1 parent b42d764 commit a68a86e
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 a68a86e

Please sign in to comment.