|
26 | 26 | * 2. Variable declarations and short basic helpers |
27 | 27 | * 3. Instance (External API) implementation |
28 | 28 | * 4. Internal state tracking objects (input state, counter) implementation |
29 | | - * and instanstiation |
| 29 | + * and instantiation |
30 | 30 | * 5. Key handler (the main command dispatcher) implementation |
31 | 31 | * 6. Motion, operator, and action implementations |
32 | 32 | * 7. Helper functions for the key handler, motions, operators, and actions |
|
642 | 642 | jumpList: createCircularJumpList(), |
643 | 643 | macroModeState: new MacroModeState, |
644 | 644 | // Recording latest f, t, F or T motion command. |
645 | | - lastChararacterSearch: {increment:0, forward:true, selectedCharacter:''}, |
| 645 | + lastCharacterSearch: {increment:0, forward:true, selectedCharacter:''}, |
646 | 646 | registerController: new RegisterController({}), |
647 | 647 | // search history buffer |
648 | 648 | searchHistoryController: new HistoryController({}), |
|
1373 | 1373 | } |
1374 | 1374 | }, |
1375 | 1375 | evalInput: function(cm, vim) { |
1376 | | - // If the motion comand is set, execute both the operator and motion. |
| 1376 | + // If the motion command is set, execute both the operator and motion. |
1377 | 1377 | // Otherwise return. |
1378 | 1378 | var inputState = vim.inputState; |
1379 | 1379 | var motion = inputState.motion; |
|
1910 | 1910 | }, |
1911 | 1911 |
|
1912 | 1912 | repeatLastCharacterSearch: function(cm, head, motionArgs) { |
1913 | | - var lastSearch = vimGlobalState.lastChararacterSearch; |
| 1913 | + var lastSearch = vimGlobalState.lastCharacterSearch; |
1914 | 1914 | var repeat = motionArgs.repeat; |
1915 | 1915 | var forward = motionArgs.forward === lastSearch.forward; |
1916 | 1916 | var increment = (lastSearch.increment ? 1 : 0) * (forward ? -1 : 1); |
|
3089 | 3089 | } |
3090 | 3090 |
|
3091 | 3091 | function recordLastCharacterSearch(increment, args) { |
3092 | | - vimGlobalState.lastChararacterSearch.increment = increment; |
3093 | | - vimGlobalState.lastChararacterSearch.forward = args.forward; |
3094 | | - vimGlobalState.lastChararacterSearch.selectedCharacter = args.selectedCharacter; |
| 3092 | + vimGlobalState.lastCharacterSearch.increment = increment; |
| 3093 | + vimGlobalState.lastCharacterSearch.forward = args.forward; |
| 3094 | + vimGlobalState.lastCharacterSearch.selectedCharacter = args.selectedCharacter; |
3095 | 3095 | } |
3096 | 3096 |
|
3097 | 3097 | var symbolToMode = { |
|
3451 | 3451 | } |
3452 | 3452 |
|
3453 | 3453 | // TODO: perhaps this finagling of start and end positions belonds |
3454 | | - // in codmirror/replaceRange? |
| 3454 | + // in codemirror/replaceRange? |
3455 | 3455 | function selectCompanionObject(cm, head, symb, inclusive) { |
3456 | 3456 | var cur = head, start, end; |
3457 | 3457 |
|
|
0 commit comments