|
85 | 85 | { keys: '<C-c>', type: 'keyToKey', toKeys: '<Esc>' },
|
86 | 86 | { keys: '<C-[>', type: 'keyToKey', toKeys: '<Esc>', context: 'insert' },
|
87 | 87 | { keys: '<C-c>', type: 'keyToKey', toKeys: '<Esc>', context: 'insert' },
|
88 |
| - { keys: 's', type: 'keyToKey', toKeys: 'cl', context: 'normal' }, |
| 88 | + { keys: 's', type: 'keyToKey', toKeys: 'cl', context: 'normal', excludeOperator: ['change'] }, |
89 | 89 | { keys: 's', type: 'keyToKey', toKeys: 'c', context: 'visual'},
|
90 | 90 | { keys: 'S', type: 'keyToKey', toKeys: 'cc', context: 'normal' },
|
91 | 91 | { keys: 'S', type: 'keyToKey', toKeys: 'VdO', context: 'visual' },
|
|
2861 | 2861 | if (context == 'insert' && command.context != 'insert' ||
|
2862 | 2862 | command.context && command.context != context ||
|
2863 | 2863 | inputState.operator && command.type == 'action' ||
|
| 2864 | + (command.excludeOperator && command.excludeOperator.includes(inputState.operator)) || |
2864 | 2865 | !(match = commandMatch(keys, command.keys))) { continue; }
|
2865 | 2866 | if (match == 'partial') { partial.push(command); }
|
2866 | 2867 | if (match == 'full') { full.push(command); }
|
|
0 commit comments