Only kill a line if it looks like an action line.
This commit is contained in:
parent
480f0726d0
commit
0244b8b1b1
1 changed files with 9 additions and 8 deletions
|
@ -97,6 +97,7 @@ current line down."
|
|||
(defun rebase-mode-kill-line ()
|
||||
"Kill the current action line."
|
||||
(interactive)
|
||||
(when (rebase-mode-looking-at-action)
|
||||
(let* ((buffer-read-only nil)
|
||||
(region (list (point-at-bol)
|
||||
(progn (forward-line)
|
||||
|
@ -104,7 +105,7 @@ current line down."
|
|||
;; might be handy to let the user know what went
|
||||
;; somehow... sometime
|
||||
(text (apply 'buffer-substring region)))
|
||||
(apply 'kill-region region)))
|
||||
(apply 'kill-region region))))
|
||||
|
||||
(define-generic-mode 'rebase-mode
|
||||
'("#")
|
||||
|
|
Loading…
Add table
Reference in a new issue