Skip to content

Commit

Permalink
fix(ui): only enable backdrop when guicolors is set. Fixes #1387
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 26, 2024
1 parent 68941b7 commit d37a76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/view/float.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function M:mount()
self.buf = vim.api.nvim_create_buf(false, true)
end

if self.opts.backdrop and self.opts.backdrop < 100 then
if self.opts.backdrop and self.opts.backdrop < 100 and vim.o.termguicolors then
self.backdrop_buf = vim.api.nvim_create_buf(false, true)
self.backdrop_win = vim.api.nvim_open_win(self.backdrop_buf, false, {
relative = "editor",
Expand Down

0 comments on commit d37a76b

Please sign in to comment.