Skip to content

Commit 1771305

Browse files
committed
chore: add comment explaining how to get a simpler error message
1 parent 253ff9c commit 1771305

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/cinnamon/scroll.lua

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ H.execute_command = function(command)
129129
if vim.v.count ~= 0 then
130130
command = vim.v.count .. command
131131
end
132+
-- Indexing the vim.cmd table gives a simpler error message
132133
local success, message = pcall(vim.cmd.normal, { command, bang = true })
133134
if not success then
134135
vim.notify(message:gsub("^Vim:", ""), vim.log.levels.ERROR)

0 commit comments

Comments
 (0)