fix crash for config shell cmds

cc #759 #778
This commit is contained in:
Gokcehan committed 2022-03-11 17:12:32 +03:00
1 parent 089e6dc705
commit fb3c31d3c7
1 file changed
+4
+4
View File
@@ -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