Skip to content

Commit

Permalink
fix(README): correct undefined line() to vim.fn.line()
Browse files Browse the repository at this point in the history
  • Loading branch information
mmirus authored and lewis6991 committed Apr 21, 2023
1 parent 5d84067 commit 7dfe4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ require('gitsigns').setup{
-- Actions
map('n', '<leader>hs', gs.stage_hunk)
map('n', '<leader>hr', gs.reset_hunk)
map('v', '<leader>hs', function() gs.stage_hunk {line("."), line("v")} end)
map('v', '<leader>hr', function() gs.reset_hunk {line("."), line("v")} end)
map('v', '<leader>hs', function() gs.stage_hunk {vim.fn.line("."), vim.fn.line("v")} end)
map('v', '<leader>hr', function() gs.reset_hunk {vim.fn.line("."), vim.fn.line("v")} end)
map('n', '<leader>hS', gs.stage_buffer)
map('n', '<leader>hu', gs.undo_stage_hunk)
map('n', '<leader>hR', gs.reset_buffer)
Expand Down

0 comments on commit 7dfe4be

Please sign in to comment.