Skip to content

Commit

Permalink
fix(grep_visual): instant exit post e8b2093
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Mar 17, 2024
1 parent e8b2093 commit 97b455a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/fzf-lua/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,11 @@ function M.get_visual_selection()
-- visual line doesn't provide columns
cscol, cecol = 0, 999
end
-- NOTE: not required since commit: e8b2093
-- exit visual mode
vim.api.nvim_feedkeys(
vim.api.nvim_replace_termcodes("<Esc>",
true, false, true), "n", true)
-- vim.api.nvim_feedkeys(
-- vim.api.nvim_replace_termcodes("<Esc>",
-- true, false, true), "n", true)
else
-- otherwise, use the last known visual position
_, csrow, cscol, _ = unpack(vim.fn.getpos("'<"))
Expand Down

0 comments on commit 97b455a

Please sign in to comment.