aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/run.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 77cad2d0..6397d627 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -183,7 +183,7 @@ end
local function compile_or_run(filename, commands)
if filename == buffer.filename then
buffer:annotation_clear_all()
- buffer:save()
+ if buffer.modify then buffer:save() end
end
local ext = filename:match('[^/\\.]+$')
local lexer = filename == buffer.filename and buffer:get_lexer() or