public/js/vendor/codemirror3/keymap/vim.js
function getFullyMatchedCommandOrNull(command) {
          if (keys.length < command.keys.length) {
            // Matches part of a multi-key command. Buffer and wait for next
            // stroke.
            inputState.keyBuffer.push(key);
            return null;
          } else {
            if (command.keys[keys.length - 1] == 'character') {
              inputState.selectedCharacter = selectedCharacter;
            }
            // Clear the buffer since a full match was found.
            inputState.keyBuffer = [];
            return command;
          }
        }
function getFullyMatchedCommandOrNull(command) {
          if (keys.length < command.keys.length) {
            // Matches part of a multi-key command. Buffer and wait for next
            // stroke.
            inputState.keyBuffer.push(key);
            return null;
          } else {
            if (command.keys[keys.length - 1] == 'character') {
              inputState.selectedCharacter = selectedCharacter;
            }
            // Clear the buffer since a full match was found.
            inputState.keyBuffer = [];
            return command;
          }
        }
function getFullyMatchedCommandOrNull ( command ) { if ( keys . length < command . keys . length ) { // Matches part of a multi-key command. Buffer and wait for next // stroke. inputState . keyBuffer . push ( key ) ; return null ; } else { if ( command . keys [ keys . length - 1 ] == 'character' ) { inputState . selectedCharacter = selectedCharacter ; } // Clear the buffer since a full match was found. inputState . keyBuffer = [ ] ; return command ; } }
Returns the command if it is a full match, or null if not.
Returns the command if it is a full match or null if not .