From fb3c31d3c74a639dce579d3354937b7257dbf72f Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 11 Mar 2022 17:12:32 +0300 Subject: [PATCH] fix crash for config shell cmds cc #759 #778 --- nav.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nav.go b/nav.go index 3b82359..03cfc42 100644 --- a/nav.go +++ b/nav.go @@ -563,6 +563,10 @@ func (nav *nav) position() { } func (nav *nav) exportFiles() { + if (!nav.init) { + return + } + var currFile string if curr, err := nav.currFile(); err == nil { currFile = curr.path