Reset syntax when a filename is provided

This commit is contained in:
Guldoman 2021-10-10 03:28:06 +02:00 committed by jgmdev
parent fb4a5f3828
commit 9763701cbf
1 changed files with 1 additions and 1 deletions

View File

@ -54,6 +54,7 @@ end
function Doc:set_filename(filename, abs_filename)
self.filename = filename
self.abs_filename = abs_filename
self:reset_syntax()
end
@ -95,7 +96,6 @@ function Doc:save(filename, abs_filename)
fp:close()
self:set_filename(filename, abs_filename)
self.new_file = false
self:reset_syntax()
self:clean()
end