summaryrefslogtreecommitdiff
path: root/script/core/command/autoRequire.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/command/autoRequire.lua')
-rw-r--r--script/core/command/autoRequire.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/command/autoRequire.lua b/script/core/command/autoRequire.lua
index 923c6f11..020cacae 100644
--- a/script/core/command/autoRequire.lua
+++ b/script/core/command/autoRequire.lua
@@ -21,7 +21,7 @@ end
local function findInsertRow(uri)
local text = files.getText(uri)
local state = files.getState(uri)
- if not state then
+ if not state or not text then
return
end
local lines = state.lines