Fix COM-FORWARD-DELETE
This commit is contained in:
parent
fa4fa088fe
commit
2331d15e11
1 changed files with 7 additions and 2 deletions
|
@ -580,10 +580,15 @@ Additionally ensures correct line numbers on the way, as a bonus."
|
|||
(feep))))
|
||||
|
||||
(defun com-forward-delete ()
|
||||
;; TODO: Check for end of line
|
||||
(with-editor-accessors *editor* (:current-column column
|
||||
:current-line line)
|
||||
(delete-character-in-line line column)))
|
||||
(cond ((and (= column (line-length line)) (null (next-line line)))
|
||||
(feep))
|
||||
((= column (line-length line))
|
||||
(merge-lines line (next-line line)))
|
||||
(t
|
||||
(delete-character-in-line line column)
|
||||
(redisplay-line line :start column)))))
|
||||
|
||||
(defun com-backward-delete ()
|
||||
(with-editor-accessors *editor* (:current-column column
|
||||
|
|
Loading…
Add table
Reference in a new issue