diff options
Diffstat (limited to 'script/core/command/autoRequire.lua')
-rw-r--r-- | script/core/command/autoRequire.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/command/autoRequire.lua b/script/core/command/autoRequire.lua index c0deecfc..923c6f11 100644 --- a/script/core/command/autoRequire.lua +++ b/script/core/command/autoRequire.lua @@ -21,6 +21,9 @@ end local function findInsertRow(uri) local text = files.getText(uri) local state = files.getState(uri) + if not state then + return + end local lines = state.lines local fmt = { pair = false, |