We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2be85b commit 7dfbd37Copy full SHA for 7dfbd37
1 file changed
el-patch.el
@@ -1061,7 +1061,11 @@ not be found, return nil.
1061
If VARIANT is provided, select that variant of the patch. This is
1062
useful only if patches were defined using `el-patch-variant'."
1063
(condition-case nil
1064
- (gethash variant (gethash type (gethash name el-patch--patches)))
+ (gethash
1065
+ (if (consp variant)
1066
+ variant
1067
+ (cons nil variant))
1068
+ (gethash type (gethash name el-patch--patches)))
1069
(error nil)))
1070
1071
(defun el-patch--select-patch ()
0 commit comments