(cur, offsetLine, offsetCh)
| 2931 | return ret; |
| 2932 | } |
| 2933 | function offsetCursor(cur, offsetLine, offsetCh) { |
| 2934 | if (typeof offsetLine === 'object') { |
| 2935 | offsetCh = offsetLine.ch; |
| 2936 | offsetLine = offsetLine.line; |
| 2937 | } |
| 2938 | return Pos(cur.line + offsetLine, cur.ch + offsetCh); |
| 2939 | } |
| 2940 | function commandMatches(keys, keyMap, context, inputState) { |
| 2941 | // Partial matches are not applied. They inform the key handler |
| 2942 | // that the current key sequence is a subsequence of a valid key |
no test coverage detected