fix: quit after mutations when :wq or similar (#221)

This commit is contained in:
Steven Arcangeli 2023-11-13 10:36:28 -08:00
parent 3727410e48
commit af13ce333f
6 changed files with 65 additions and 18 deletions

View file

@ -684,6 +684,7 @@ M.render_buffer_async = function(bufnr, opts, callback)
local seek_after_render_found = false
local first = true
vim.bo[bufnr].modifiable = false
vim.bo[bufnr].modified = false
loading.set_loading(bufnr, true)
local finish = vim.schedule_wrap(function()