public/js/vendor/codemirror3/keymap/vim.js
function onChange(_cm, changeObj) {
      var macroModeState = vimGlobalState.macroModeState;
      var lastChange = macroModeState.lastInsertModeChanges;
      while (changeObj) {
        lastChange.expectCursorActivityForChange = true;
        if (changeObj.origin == '+input' || changeObj.origin == 'paste'
            || changeObj.origin === undefined /* only in testing */) {
          var text = changeObj.text.join('\n');
          lastChange.changes.push(text);
        }
        // Change objects may be chained with next.
        changeObj = changeObj.next;
      }
    }
function onChange(_cm, changeObj) {
      var macroModeState = vimGlobalState.macroModeState;
      var lastChange = macroModeState.lastInsertModeChanges;
      while (changeObj) {
        lastChange.expectCursorActivityForChange = true;
        if (changeObj.origin == '+input' || changeObj.origin == 'paste'
            || changeObj.origin === undefined /* only in testing */) {
          var text = changeObj.text.join('\n');
          lastChange.changes.push(text);
        }
        // Change objects may be chained with next.
        changeObj = changeObj.next;
      }
    }
function onChange ( _cm , changeObj ) { var macroModeState = vimGlobalState . macroModeState ; var lastChange = macroModeState . lastInsertModeChanges ; while ( changeObj ) { lastChange . expectCursorActivityForChange = true ; if ( changeObj . origin == '+input' || changeObj . origin == 'paste' || changeObj . origin === undefined /* only in testing */ ) { var text = changeObj . text . join ( '\n' ) ; lastChange . changes . push ( text ) ; } // Change objects may be chained with next. changeObj = changeObj . next ; } }
Listens for changes made in insert mode.
Should only be active in insert mode.
Listens for changes made in insert mode . Should only be active in insert mode .