From fa5a0a284b4e4e2e34a5cf1d36d53f7ce55ca5c8 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 26 Mar 2019 17:55:07 -0400 Subject: [PATCH] tldr: fix small bug about indexing --- plugins/tldr/tldr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tldr/tldr.go b/plugins/tldr/tldr.go index fc03454..0f5b434 100644 --- a/plugins/tldr/tldr.go +++ b/plugins/tldr/tldr.go @@ -157,6 +157,7 @@ func (p *TLDRPlugin) pruneHistory() { } } p.history = out + p.index = len(out) } // Help responds to help requests. Every plugin must implement a help function.