Fix deleting of entries in timelines when not at beginning of line

When not at bol, the cursor would only jump to the beginning of the line instead of killing it,
because `kill-line` only deletes the rest of the line.  Use `kill-whole-line` instead.
This commit is contained in:
Daniel Borchmann 2025-10-02 16:19:31 +02:00
parent b37fd1202f
commit 90a2684641
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -679,7 +679,7 @@ Updates category properties before constructing the new timeline."
;; current line by ourselves ;; current line by ourselves
(if (timeline-tools--get-entry-from-point) ; barfs if there's no entry (if (timeline-tools--get-entry-from-point) ; barfs if there's no entry
(kill-line)) (kill-whole-line))
(let ((linenum (line-number-at-pos (point)))) (let ((linenum (line-number-at-pos (point))))
(timeline-tools-redraw-timeline) (timeline-tools-redraw-timeline)