branch: elpa/typst-ts-mode
commit a6e69409561e7f20355f07ef6aeef4e784bd6c16
Author: Huan Nguyen <nguyenthieuh...@gmail.com>
Commit: Huan Nguyen <nguyenthieuh...@gmail.com>

    refactor: do not `kill-line` because it will be in kill-ring
---
 typst-ts-editing.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typst-ts-editing.el b/typst-ts-editing.el
index e1c7edd6be..faa9768f00 100644
--- a/typst-ts-editing.el
+++ b/typst-ts-editing.el
@@ -154,7 +154,7 @@ When prefix ARG is non-nil, call global return function."
                      (typst-ts-mode-insert--item item-node))
                  ;; no text means delete the item on current line: (item -)
                  (beginning-of-line)
-                 (kill-line)
+                 (delete-line)
                  ;; whether the previous line is in an item
                  (let* ((prev-line-item-node
                          (typst-ts-core-parent-util-type
@@ -167,7 +167,7 @@ When prefix ARG is non-nil, call global return function."
                        (progn
                          ;; sometimes there is no newlines characters at the 
EOL
                          (ignore-errors
-                           (kill-line))
+                           (delete-line))
                          (forward-line -1)
                          (end-of-line)
                          (call-interactively #'newline))

Reply via email to