From 4418abe11364b4ebf7dc205bb27811b8c7197b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 25 Jan 2019 17:52:23 +0800 Subject: =?UTF-8?q?=E8=A6=81=E5=88=A4=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server') diff --git a/server/src/service.lua b/server/src/service.lua index a7d97614..886eef10 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -193,6 +193,9 @@ function mt:readText(uri, path, buf) end function mt:removeText(uri) + if not self._file[uri] then + return + end self:saveText(uri, -1, '') self:compileVM(uri) self._file[uri] = nil -- cgit v1.2.3