Skip to content

Commit

Permalink
vt ABCD default is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
payonel committed Jun 7, 2020
1 parent f74af9c commit a84506b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ local function set_cursor(window, x, y)
end

-- -- These DO NOT SCROLL
-- [(%d+)A move cursor up n lines
-- [(%d+)B move cursor down n lines
-- [(%d+)C move cursor right n lines
-- [(%d+)D move cursor left n lines
rules[{"%[", "%d+", "[ABCD]"}] = function(window, _, n, dir)
-- [(%d*)A move cursor up n lines
-- [(%d*)B move cursor down n lines
-- [(%d*)C move cursor right n lines
-- [(%d*)D move cursor left n lines
rules[{"%[", "%d*", "[ABCD]"}] = function(window, _, n, dir)
local dx, dy = 0, 0
n = tonumber(n)
n = tonumber(n) or 1
if dir == "A" then
dy = -n
elseif dir == "B" then
Expand Down

0 comments on commit a84506b

Please sign in to comment.