Re-support script mapping

This commit is contained in:
hrsh7th
2021-10-28 00:50:50 +09:00
parent 455817bb26
commit 881ca573db

View File

@@ -270,6 +270,9 @@ keymap.evacuate = function(mode, lhs)
elseif map.noremap ~= 0 and map.expr == 1 then
-- noremap & expr mapping should always evacuate as <Plug> mapping.
rhs = rhs
elseif map.script == 1 then
-- script mapping should always evacuate as <Plug> mapping.
rhs = rhs
elseif map.noremap == 0 then
-- remap & non-expr mapping should be checked if recursive or not.
rhs = keymap.recursive(mode, lhs, rhs)