Skip to content

Commit

Permalink
Stop using deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jan 25, 2022
1 parent 56cdffd commit 5fc7dbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions magit-delta.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

(defcustom magit-delta-delta-args
`("--max-line-distance" "0.6"
"--24-bit-color" ,(if xterm-color--support-truecolor "always" "never")
"--true-color" ,(if xterm-color--support-truecolor "always" "never")
"--color-only")
"Delta command line arguments as a list of strings.
Expand All @@ -66,9 +66,9 @@ will be added if not present."
(defun magit-delta--make-delta-args ()
"Make final list of delta command-line arguments."
(let ((args magit-delta-delta-args))
(unless (-intersection '("--theme" "--light" "--dark") args)
(unless (-intersection '("--syntax-theme" "--light" "--dark") args)
(setq args (nconc
(list "--theme"
(list "--syntax-theme"
(if (eq (frame-parameter nil 'background-mode) 'dark)
magit-delta-default-dark-theme
magit-delta-default-light-theme))
Expand Down

0 comments on commit 5fc7dbd

Please sign in to comment.