mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Fix continuation prompt insertion
* Remove the invisible character inserted along with the continuation prompt as it is really unneeded. * Make the inserted space two characters wide. For some reason this is needed, otherwise the continuation prompt will be one character short when starting up a REPL from the byte compiled functions. Curiously when I evaluate `jupyter-repl-insert-prompt` in the current Emacs session, the prompt looks fine afterwards.
This commit is contained in:
parent
c651f16ae2
commit
5caf82cf81
1 changed files with 5 additions and 7 deletions
|
@ -715,13 +715,11 @@ interpreted as `in'."
|
|||
:properties '(invisible t front-sticky t) " "))
|
||||
((eq type 'continuation)
|
||||
(jupyter-repl--make-prompt
|
||||
" " 'jupyter-repl-input-prompt
|
||||
`(read-only nil rear-nonsticky t))
|
||||
;; Prevent prompt overlay from inheriting text properities of cell code.
|
||||
;; See the note for input prompts.
|
||||
(jupyter-repl-insert
|
||||
:read-only nil
|
||||
:properties '(invisible t rear-nonsticky t front-sticky t) " "))))))
|
||||
;; This needs to be two characters wide for some
|
||||
;; reason, otherwise the continuation prompts will
|
||||
;; be missing one character.
|
||||
" " 'jupyter-repl-input-prompt
|
||||
`(read-only nil rear-nonsticky t)))))))
|
||||
|
||||
(defun jupyter-repl-cell-update-prompt (str)
|
||||
"Update the current cell's input prompt.
|
||||
|
|
Loading…
Add table
Reference in a new issue