fix: diagnostic float would not open if scope=cursor (#275)

This commit is contained in:
Steven Arcangeli 2024-01-14 12:34:07 -08:00
parent c4cc8240f1
commit a1af7a1b59
3 changed files with 9 additions and 1 deletions

View file

@ -463,6 +463,7 @@ M.try_write_changes = function(confirm, cb)
local was_modified = vim.bo.modified
local buffers = view.get_all_buffers()
local all_diffs = {}
---@type table<integer, oil.ParseError[]>
local all_errors = {}
mutation_in_progress = true