Skip to content

Commit

Permalink
[vim keymap] Put underscores after variable name for private variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyguava authored and marijnh committed Dec 7, 2012
1 parent c40be3d commit e4ed6f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions keymap/vim.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
return getVimGlobalState().registerController;
},
// Testing hook.
_clearVimGlobalState: function() {
clearVimGlobalState_: function() {
vimGlobalState = null;
},
// Initializes vim state variable on the CodeMirror object. Should only be
Expand Down Expand Up @@ -486,7 +486,7 @@
} else {
// Shift down the contents of the numbered registers and put the
// deleted text into register 1.
this._shiftNumericRegisters();
this.shiftNumericRegisters_();
this.registers['1'] = new Register(text, linewise);
}
break;
Expand Down Expand Up @@ -523,7 +523,7 @@
isValidRegister: function(name) {
return name && inArray(name, validRegisters);
},
_shiftNumericRegisters: function() {
shiftNumericRegisters_: function() {
for (var i = 9; i >= 2; i--) {
this.registers[i] = this.getRegister('' + (i - 1));
}
Expand Down Expand Up @@ -1715,7 +1715,7 @@
}
function getSearchState(cm) {
var vim = getVimState(cm);
return vim._searchState || (vim._searchState = new SearchState());
return vim.searchState_ || (vim.searchState_ = new SearchState());
}
function dialog(cm, text, shortText, callback) {
if (cm.openDialog) {
Expand Down
2 changes: 1 addition & 1 deletion test/vim_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function testVim(name, run, opts, expectedFail) {
return CodeMirror.Vim.getRegisterController();
}
}
CodeMirror.Vim._clearVimGlobalState();
CodeMirror.Vim.clearVimGlobalState_();
var successful = false;
try {
run(cm, vim, helpers);
Expand Down

0 comments on commit e4ed6f6

Please sign in to comment.