fix(init): tighten dirty-buffer warning message
This commit is contained in:
parent
06a325baa4
commit
628286c471
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ end
|
||||||
local function require_saved()
|
local function require_saved()
|
||||||
local bufnr = buffer.bufnr()
|
local bufnr = buffer.bufnr()
|
||||||
if bufnr and vim.bo[bufnr].modified then
|
if bufnr and vim.bo[bufnr].modified then
|
||||||
log.warn('Buffer has unsaved changes — write with :w first.')
|
log.warn('save changes first (:w)')
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue