fixup! Consider Jupyter index for code frames (--show-source) (#5402) (#5414)

This commit is contained in:
Dhruv Manilawala 2023-06-28 15:55:05 +05:30 committed by GitHub
parent b42d76494c
commit a68a86e18b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}