Skip to content

Commit

Permalink
tweak kill-line
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Jul 17, 2023
1 parent 3b543f3 commit efab48b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/commands/edit.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,21 @@
(flet ((end-line-p* (p)
(with-point ((p p))
(skip-whitespace-forward p t)
(end-line-p p))))
(end-line-p p)))
(start-line-p* (p)
(when (start-line-p p)
(with-point ((p p))
(skip-whitespace-forward p t)
(end-line-p p)))))
(save-excursion
(with-point ((start (current-point) :right-inserting))
(cond
((null arg)
(let ((p (current-point)))
(cond ((end-buffer-p p)
(error 'end-of-buffer :point p))
((start-line-p* p)
(line-offset p 1))
((end-line-p* p)
(if (line-offset p 1)
(skip-whitespace-forward p t)
Expand Down

0 comments on commit efab48b

Please sign in to comment.