Skip to content

Commit 7dfbd37

Browse files
committed
Default to traditional variants in el-patch-get [#67]
1 parent c2be85b commit 7dfbd37

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

el-patch.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,11 @@ not be found, return nil.
10611061
If VARIANT is provided, select that variant of the patch. This is
10621062
useful only if patches were defined using `el-patch-variant'."
10631063
(condition-case nil
1064-
(gethash variant (gethash type (gethash name el-patch--patches)))
1064+
(gethash
1065+
(if (consp variant)
1066+
variant
1067+
(cons nil variant))
1068+
(gethash type (gethash name el-patch--patches)))
10651069
(error nil)))
10661070

10671071
(defun el-patch--select-patch ()

0 commit comments

Comments
 (0)