mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[jupyter] PY-73017 fixes to pass JupyterEditingTest
GitOrigin-RevId: 5b989c12afb4c94a07947db56f8f6e0625c4589c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
56dd1f6ad4
commit
dfa1576489
@@ -17,9 +17,9 @@ class EditorCellRunButton(private val editor: EditorEx) {
|
||||
if (interval.type != NotebookCellLines.CellType.CODE) return
|
||||
val linesRange = interval.lines
|
||||
|
||||
val sourceStartOffset = editor.document.getLineStartOffset(interval.lines.first + 1)
|
||||
val sourceStartOffset = editor.document.getLineEndOffset(interval.lines.first)
|
||||
val sourceEndOffset = editor.document.getLineEndOffset(interval.lines.last)
|
||||
if (sourceStartOffset >= sourceEndOffset) return // PY-72785 don't show for empty cells
|
||||
if (sourceStartOffset + 1 == sourceEndOffset) return // PY-72785 don't show for empty cells
|
||||
|
||||
cellRangeHighlighter = editor.markupModel.addRangeHighlighter(
|
||||
sourceStartOffset,
|
||||
|
||||
Reference in New Issue
Block a user