Skip to content

Commit

Permalink
fix(popup): buffer title should be the same as win title
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Nov 20, 2024
1 parent 9e653b9 commit 81d3c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rip-substitute/popup-win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function M.openSubstitutionPopup()
-- CREATE BUFFER
state.popupBufNr = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_lines(state.popupBufNr, 0, -1, false, state.prefill)
vim.api.nvim_buf_set_name(state.popupBufNr, "rip-substitute")
vim.api.nvim_buf_set_name(state.popupBufNr, config.popupWin.title)
pcall(vim.treesitter.start, state.popupBufNr, "regex")
vim.api.nvim_set_option_value("filetype", "rip-substitute", { buf = state.popupBufNr })

Expand Down

0 comments on commit 81d3c12

Please sign in to comment.