From ac1eacd2a5b58f9d73aa25e1b564337ef54ba94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Fri, 19 Feb 2021 13:18:21 +0100 Subject: [PATCH] plugin - SetState no longer resets additional text --- plugin/plugin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/plugin.go b/plugin/plugin.go index f855a9c..f12c3c0 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -51,11 +51,10 @@ func New(name string) *Plugin { } // SetState sets the plugin's output code to `status` and its message to -// the specified `message`. Any extra text is cleared. +// the specified `message`. func (p *Plugin) SetState(status Status, message string) { p.status = status p.message = message - p.extraText = nil } // AddLine adds the specified string to the extra output text buffer.