Reset syntax when a filename is provided
This commit is contained in:
parent
fb4a5f3828
commit
9763701cbf
|
@ -54,6 +54,7 @@ end
|
||||||
function Doc:set_filename(filename, abs_filename)
|
function Doc:set_filename(filename, abs_filename)
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
self.abs_filename = abs_filename
|
self.abs_filename = abs_filename
|
||||||
|
self:reset_syntax()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,7 +96,6 @@ function Doc:save(filename, abs_filename)
|
||||||
fp:close()
|
fp:close()
|
||||||
self:set_filename(filename, abs_filename)
|
self:set_filename(filename, abs_filename)
|
||||||
self.new_file = false
|
self.new_file = false
|
||||||
self:reset_syntax()
|
|
||||||
self:clean()
|
self:clean()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue