diff options
Diffstat (limited to 'modules/textadept/session.lua')
-rw-r--r-- | modules/textadept/session.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 9f21a65a..98a5c56c 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -62,7 +62,7 @@ function M.load(filename) not_found[#not_found + 1] = filename end else - new_buffer()._type = filename + buffer.new()._type = filename events.emit(events.FILE_OPENED, filename) end -- Restore saved buffer selection and view. |