diff options
Diffstat (limited to 'script/core/command/autoRequire.lua')
-rw-r--r-- | script/core/command/autoRequire.lua | 2 |
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 |