Skip to content

Commit

Permalink
chore: add comment explaining how to get a simpler error message
Browse files Browse the repository at this point in the history
  • Loading branch information
declancm committed Jul 13, 2024
1 parent 253ff9c commit 1771305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/cinnamon/scroll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ H.execute_command = function(command)
if vim.v.count ~= 0 then
command = vim.v.count .. command
end
-- Indexing the vim.cmd table gives a simpler error message
local success, message = pcall(vim.cmd.normal, { command, bang = true })
if not success then
vim.notify(message:gsub("^Vim:", ""), vim.log.levels.ERROR)
Expand Down

0 comments on commit 1771305

Please sign in to comment.