Skip to content

Commit

Permalink
Merge pull request NixOS#11 from nat-418/fix-first-number-jump-bug
Browse files Browse the repository at this point in the history
Fix first number jumping bug
  • Loading branch information
nat-418 authored Oct 23, 2022
2 parents eac7ab7 + 4b430c3 commit 1e44749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/boole/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ M.run = function(direction)
and replace_map.decrement[under_cursor]
or replace_map.increment[under_cursor]

if match ~= nil then return vim.cmd(':normal ciw' .. match) end
if match ~= nil then return vim.cmd('normal ciw' .. match) end

-- <C-a> and <C-x> compatability
if direction == 'increment' then return vim.cmd(':normal!'..vim.v.count..'') end
if direction == 'decrement' then return vim.cmd(':normal!'..vim.v.count..'') end
if direction == 'increment' then return vim.cmd('normal!'..vim.v.count..'') end
if direction == 'decrement' then return vim.cmd('normal!'..vim.v.count..'') end

vim.api.nvim_cmd()
return false
Expand Down

0 comments on commit 1e44749

Please sign in to comment.