diff options
author | 2012-01-05 10:24:51 -0500 | |
---|---|---|
committer | 2012-01-05 10:24:51 -0500 | |
commit | 7cf43c7dd653ef28c2212975f81b14be6473e06f (patch) | |
tree | 251c33430f492d8780ab22cd69a9abe0af02f0c3 /core/file_io.lua | |
parent | bd351f0bef198d981b67830ddb5e4cd42c3aca37 (diff) | |
download | textadept-7cf43c7dd653ef28c2212975f81b14be6473e06f.tar.gz textadept-7cf43c7dd653ef28c2212975f81b14be6473e06f.zip |
Code cleanup.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 8546d652..35be637d 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -210,7 +210,7 @@ end local function save(buffer) if not buffer then buffer = _G.buffer end buffer:check_global() - if not buffer.filename then return buffer:save_as() end + if not buffer.filename then buffer:save_as() return end events.emit(events.FILE_BEFORE_SAVE, buffer.filename) local text = buffer:get_text(buffer.length) if buffer.encoding then |