Skip to content

Commit

Permalink
fix: remove space from zz zv command
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent c453012 commit ca2cd56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/trouble/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function M:jump(item, opts)
vim.api.nvim_set_current_win(win)
vim.api.nvim_win_set_cursor(win, item.pos)
vim.api.nvim_win_call(win, function()
vim.cmd("norm! zz zv")
vim.cmd("norm! zzzv")
end)
return item
end
Expand Down
2 changes: 1 addition & 1 deletion lua/trouble/view/preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function M.open(view, item)
Util.noautocmd(function()
vim.api.nvim_win_set_cursor(M.preview.win, item.pos)
vim.api.nvim_win_call(M.preview.win, function()
vim.cmd("norm! zz zv")
vim.cmd("norm! zzzv")
end)
end)

Expand Down

0 comments on commit ca2cd56

Please sign in to comment.