Skip to content

Commit

Permalink
fix(search): allow disabling multi window for search. Fixes #198. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 28, 2023
1 parent a74d31f commit 0256d8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/flash/plugins/search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ function M.start()
forward = vim.fn.getcmdtype() == "/",
mode = "search",
incremental = vim.go.incsearch,
multi_window = not M.op,
},
})
if M.op then
M.state.opts.search.multi_window = false
end
end

function M.setup()
Expand Down

0 comments on commit 0256d8e

Please sign in to comment.