diff options
author | 2020-07-01 00:12:36 -0400 | |
---|---|---|
committer | 2020-07-01 00:12:36 -0400 | |
commit | 6def33c0123fe26443a4a68dec04616a4b48f278 (patch) | |
tree | 38b4be19f5150f82f4e925651cdb27602467e981 /modules/textadept | |
parent | 8f5910547a39aa7febca31c93a87c6031a340e52 (diff) | |
download | textadept-6def33c0123fe26443a4a68dec04616a4b48f278.tar.gz textadept-6def33c0123fe26443a4a68dec04616a4b48f278.zip |
Only save before compile/run if the buffer has been modified.
Auto-saving interferes with commands that read file modification times.
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/run.lua | 2 |
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 |