Skip to content

Commit

Permalink
Merge pull request #1233 from mychris/patch/fix-previous-prompt-glitch
Browse files Browse the repository at this point in the history
Fix backward-prompt glitches where a prompt is skipped.
  • Loading branch information
cxxxr authored Jan 5, 2024
2 parents 0230c89 + 345031c commit d29495e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/lisp-mode/repl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,12 @@

(define-command backward-prompt () ()
(when (equal (current-buffer) (repl-buffer))
(move-to-previous-virtual-line (current-point))
(line-start (current-point))
(lem:previous-single-property-change (lem:current-point) :field)))

(define-command forward-prompt () ()
(when (equal (current-buffer) (repl-buffer))
(move-to-next-virtual-line (current-point))
(line-end (current-point))
(lem:next-single-property-change (lem:current-point) :field)
(lem:next-single-property-change (lem:current-point) :field)))

Expand Down

0 comments on commit d29495e

Please sign in to comment.