Skip to content

Commit f65fba7

Browse files
authored
fix: nvim_win_set_buf will reset visual selection (#173)
Visual selection don't work in quickfix when enable preview: neovim/neovim#37340
1 parent daa1a13 commit f65fba7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/bqf/utils.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ end
295295
function M.winCall(winid, f)
296296
if winid == 0 or winid == api.nvim_get_current_win() then
297297
return f()
298+
elseif api.nvim_win_call then
299+
return api.nvim_win_call(winid, f)
298300
else
299301
local nr = fn.winnr('#')
300302
local lastWinid

0 commit comments

Comments
 (0)