From 78f1aee25c9563909356d4e993abd5b951555ee0 Mon Sep 17 00:00:00 2001 From: Roi Martin Date: Mon, 14 Nov 2016 21:56:17 +0100 Subject: [PATCH] Set viewLines to nil on *View.Clear() --- view.go | 1 + 1 file changed, 1 insertion(+) diff --git a/view.go b/view.go index 3b14f90..0bf27e1 100644 --- a/view.go +++ b/view.go @@ -395,6 +395,7 @@ func (v *View) Clear() { v.tainted = true v.lines = nil + v.viewLines = nil v.readOffset = 0 v.clearRunes() }