Mark unsaved named files as dirty (#1598)
This commit is contained in:
parent
1196bf355c
commit
1669409610
|
@ -123,6 +123,7 @@ end
|
||||||
|
|
||||||
function Doc:is_dirty()
|
function Doc:is_dirty()
|
||||||
if self.new_file then
|
if self.new_file then
|
||||||
|
if self.filename then return true end
|
||||||
return #self.lines > 1 or #self.lines[1] > 1
|
return #self.lines > 1 or #self.lines[1] > 1
|
||||||
else
|
else
|
||||||
return self.clean_change_id ~= self:get_change_id()
|
return self.clean_change_id ~= self:get_change_id()
|
||||||
|
|
Loading…
Reference in New Issue