Do not set window's title to unsaved for command view

This commit is contained in:
Francesco Abbate 2021-02-28 18:54:32 +01:00
parent bd2d8db231
commit 6c84913f6a
1 changed files with 5 additions and 2 deletions

View File

@ -91,8 +91,11 @@ end
function DocView:get_filename() function DocView:get_filename()
local post = self.doc:is_dirty() and "*" or "" if self.doc.abs_filename then
return (self.doc.abs_filename and self.doc.abs_filename or "unsaved") .. post local post = self.doc:is_dirty() and "*" or ""
return self.doc.abs_filename .. post
end
return self:get_name()
end end