mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 23:41:37 -05:00
Remove edge case that doesn't matter anymore
If `pos` is not the beginning of a cell then a beginning can always be found unless no cell beginning exists, even when `point-min` is the beginning of a cell. These cases are already handled by the surround code.
This commit is contained in:
parent
c670e4e620
commit
47c50f7c73
1 changed files with 1 additions and 4 deletions
|
@ -552,10 +552,7 @@ buffer is found before the beginning of a cell, raise a
|
|||
`beginning-of-buffer' error."
|
||||
(let ((pos (point)))
|
||||
(while (not (jupyter-repl-cell-beginning-p pos))
|
||||
(setq pos (or (previous-single-property-change pos 'jupyter-cell)
|
||||
;; Edge case when `point-min' is the beginning of a cell
|
||||
(and (jupyter-repl-cell-beginning-p (point-min))
|
||||
(point-min))))
|
||||
(setq pos (previous-single-property-change pos 'jupyter-cell))
|
||||
(if pos (when (jupyter-repl-cell-end-p pos)
|
||||
(error "Found end of previous cell"))
|
||||
(signal 'beginning-of-buffer nil)))
|
||||
|
|
Loading…
Add table
Reference in a new issue