Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(popup): set modifiable failed when vim.api.nvim_buf_set_lines #575

Merged
merged 12 commits into from
Apr 25, 2024
Merged
Prev Previous commit
Next Next commit
fix: removed modifiable from what as bufnr
  • Loading branch information
AlejandroSuero committed Apr 25, 2024
commit 74485dbf6064a7956c32b9e0031a8380ed86c6e2
3 changes: 0 additions & 3 deletions lua/plenary/popup/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ function popup.create(what, vim_options)
local bufnr
if type(what) == "number" then
bufnr = what
if vim.o.modifiable == false then
vim.api.nvim_buf_set_option(bufnr, "modifiable", true)
end
else
bufnr = vim.api.nvim_create_buf(false, true)
assert(bufnr, "Failed to create buffer")
Expand Down
Loading