mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:17:59 +01:00
Fallback to count of parent mapping in motion maps. 2dw == d2w == 8d2w.
This commit is contained in:
@@ -540,8 +540,10 @@ var Editor = Module("editor", {
|
||||
function addMotionMap(key, desc, select, cmd, mode) {
|
||||
mappings.add([modes.OPERATOR], [key],
|
||||
desc,
|
||||
function ({ count, motion, command }) {
|
||||
function ({ count, motion }) {
|
||||
modes.push(modes.OPERATOR, null, {
|
||||
count: count,
|
||||
|
||||
leave: function leave(stack) {
|
||||
if (stack.push)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user