Skip to content

Commit

Permalink
Redraw before echo to prevent messing up screen when echoing and doin…
Browse files Browse the repository at this point in the history
…g soemthing else
  • Loading branch information
deathbeam committed Feb 20, 2024
1 parent b9c4d9c commit 2be0ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspecho/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ local function log(msg)
end
end

vim.api.nvim_command(string.format('echo "%s"', string.sub(out, 1, vim.v.echospace)))
vim.api.nvim_command(string.format('redraw | echo "%s"', string.sub(out, 1, vim.v.echospace)))
end

local function lsp_progress(err, progress, ctx)
Expand Down

0 comments on commit 2be0ed3

Please sign in to comment.