After remapping the delete operator (i.e. to k), when pressing the newly mapped key twice, it deletes 2 lines. The action should only delete one line. Pressing the default delete operator d twice only deletes one line, of course when the binding for d has not been changed.
Steps to reproduce
Use this config:
-- ...
vis.events.subscribe(vis.events.INIT, function()
-- Your global configuration options
-- key mappings
vis:map(vis.modes.NORMAL, "d", "<Left>")
vis:map(vis.modes.NORMAL, "h", "<Down>")
vis:map(vis.modes.NORMAL, "t", "<Up>")
vis:map(vis.modes.NORMAL, "n", "<Right>")
vis:map(vis.modes.NORMAL, "l", "<vis-motion-search-repeat>")
vis:map(vis.modes.NORMAL, "L", "<vis-motion-search-repeat-backward>")
vis:map(vis.modes.NORMAL, "k", "<vis-operator-delete>")
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- luacheck: no unused args
-- Your per window configuration options e.g.
vis:command('set theme base16-tomorrow-night')
vis:command('set number')
vis:command('set cursorline')
end)
-- ...
Problem
After remapping the delete operator (i.e. to k), when pressing the newly mapped key twice, it deletes 2 lines. The action should only delete one line. Pressing the default delete operator d twice only deletes one line, of course when the binding for d has not been changed.
Steps to reproduce
Use this config:
vis version (vis -v)
vis 0.8 +curses +lua +acl
Terminal name/version
foot version: 1.17.2 +pgo +ime +graphemes -assertions
$TERM environment variable
xterm-256color