aboutsummaryrefslogtreecommitdiff
path: root/core/file_io.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/file_io.lua')
-rw-r--r--core/file_io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index bf0809cd..3d184c36 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -331,7 +331,7 @@ function load_session(filename, only_pm)
local anchor, current_pos, first_visible_line, filename =
line:match('^buffer: (%d+) (%d+) (%d+) (.+)$')
if not filename:find('^%[.+%]$') then
- textadept.io.open(filename or '', 'rb')
+ textadept.io.open(filename or '')
else
textadept.new_buffer()
buffer._type = filename