From 05069da92f50359f3fa22763cf50b0864206b237 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Sat, 22 Oct 2016 21:06:09 +0800 Subject: [PATCH] Fix Editor.nextHistory. This fixes #286. --- edit/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/history.go b/edit/history.go index bd954d542..2606ccc94 100644 --- a/edit/history.go +++ b/edit/history.go @@ -120,7 +120,7 @@ func (ed *Editor) nextHistory() bool { if ed.store == nil { return false } - i := ed.hist.current + 1 + i := ed.hist.current var line string for { var err error