From 125461cab730871aef4f07e21ac8cf8c165808ee Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 6 May 2016 22:51:02 +0100 Subject: [PATCH] inline: expand show=N backwards compatibility to negative N [[plugins/contrib]] uses show=-1 to show the post-creation widget without actually inlining anything. --- IkiWiki/Plugin/inline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index c3895d982..19dd684dd 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -183,7 +183,7 @@ sub preprocess_inline (@) { my $feedonly=yesno($params{feedonly}); # Backwards compatibility - if (defined $params{show} && $params{show} =~ m/^\d+$/) { + if (defined $params{show} && $params{show} =~ m/^-?\d+$/) { $params{limit} = $params{show}; delete $params{show}; } -- 2.39.5