Skip to content

Commit 0130845

Browse files
committed
Stop using magit-insert
That function has been removed from Magit.
1 parent d71dac7 commit 0130845

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

magit-stgit.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,15 @@ Use ARGS to pass additional arguments."
628628
(magit-bind-match-strings (empty state patch msg) nil
629629
(delete-region (point) (point-at-eol))
630630
(magit-insert-section (stgit-patch patch)
631-
(magit-insert
632-
(if (magit-stgit-mark-contains patch) "#" " "))
633-
(magit-insert state (cond ((equal state ">") 'magit-stgit-current)
631+
(insert (if (magit-stgit-mark-contains patch) "#" " "))
632+
(insert (propertize state 'face
633+
(cond ((equal state ">") 'magit-stgit-current)
634634
((equal state "+") 'magit-stgit-applied)
635635
((equal state "-") 'magit-stgit-unapplied)
636636
((equal state "!") 'magit-stgit-hidden)
637637
(t (user-error "Unknown stgit patch state: %s"
638-
state))))
639-
(magit-insert empty 'magit-stgit-empty ?\s)
638+
state)))))
639+
(insert (propertize empty 'face 'magit-stgit-empty) ?\s)
640640
(when magit-stgit-show-patch-name
641641
(magit-insert patch 'magit-stgit-patch ?\s))
642642
(insert msg)

0 commit comments

Comments
 (0)