From ea009881054fe774a59f440db8da15ce0425a464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 4 Feb 2021 17:02:06 +0800 Subject: fix runtime errors --- script/files.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'script/files.lua') diff --git a/script/files.lua b/script/files.lua index 2e0c2666..e233846c 100644 --- a/script/files.lua +++ b/script/files.lua @@ -229,8 +229,11 @@ function m.remove(uri) if not file then return end - m.fileMap[uri] = nil - m._pairsCache = nil + m.fileMap[uri] = nil + m.astMap[uri] = nil + m.linesMap[uri] = nil + m.originLinesMap[uri] = nil + m._pairsCache = nil m.flushFileCache(uri) m.fileCount = m.fileCount - 1 -- cgit v1.2.3