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()
if self.doc.abs_filename then
local post = self.doc:is_dirty() and "*" or ""
return (self.doc.abs_filename and self.doc.abs_filename or "unsaved") .. post
return self.doc.abs_filename .. post
end
return self:get_name()
end