fixed map-pointer
This commit is contained in:
parent
cbf7a37144
commit
601ed6d2e1
1 changed files with 6 additions and 3 deletions
|
|
@ -343,9 +343,12 @@ for map_type, tbl in pairs(mappings) do
|
||||||
else
|
else
|
||||||
opt = '-' .. opt
|
opt = '-' .. opt
|
||||||
end
|
end
|
||||||
|
local layout = ''
|
||||||
-- -layout 0 is hardcoded to make mappings work on any layout
|
-- -layout 0 is hardcoded on 'riverctl map *' to make mappings work on any layout
|
||||||
os.execute(string.format('riverctl %s -layout 0 %s %s %s %s %s', map_type, opt, mode, modifiers, binding.key, cmd))
|
if map_type == 'map' then
|
||||||
|
layout = '-layout 0'
|
||||||
|
end
|
||||||
|
os.execute(string.format('riverctl %s %s %s %s %s %s %s', map_type, layout, opt, mode, modifiers, binding.key, cmd))
|
||||||
|
|
||||||
-- Duplicate mappings of mode 'locked' for mode 'normal'
|
-- Duplicate mappings of mode 'locked' for mode 'normal'
|
||||||
if mode == 'locked' then
|
if mode == 'locked' then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue