Skip to content

Commit ed9278c

Browse files
nightwingmarijnh
authored andcommitted
[vim] remove unnesseary seimicolons
1 parent 1a10a14 commit ed9278c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

keymap/vim.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@
841841
}
842842

843843
function handleKeyNonInsertMode() {
844-
if (handleMacroRecording() || handleEsc()) { return true; };
844+
if (handleMacroRecording() || handleEsc()) { return true; }
845845

846846
var keys = vim.inputState.keyBuffer = vim.inputState.keyBuffer + key;
847847
if (/^[1-9]\d*$/.test(keys)) { return true; }
@@ -4837,7 +4837,7 @@
48374837
}
48384838
if (!confirm) {
48394839
replaceAll();
4840-
if (callback) { callback(); };
4840+
if (callback) { callback(); }
48414841
return;
48424842
}
48434843
showPrompt(cm, {
@@ -4973,7 +4973,7 @@
49734973
exitInsertMode(cm);
49744974
}
49754975
}
4976-
};
4976+
}
49774977
macroModeState.isPlaying = false;
49784978
}
49794979

@@ -5177,7 +5177,7 @@
51775177
exitInsertMode(cm);
51785178
}
51795179
macroModeState.isPlaying = false;
5180-
};
5180+
}
51815181

51825182
function repeatInsertModeChanges(cm, changes, repeat) {
51835183
function keyHandler(binding) {

test/vim_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function testJumplist(name, keys, endPos, startPos, dialog) {
255255
helpers.doKeys.apply(null, keys);
256256
helpers.assertCursorAt(endPos);
257257
}, {value: jumplistScene});
258-
};
258+
}
259259
testJumplist('jumplist_H', ['H', '<C-o>'], [5,2], [5,2]);
260260
testJumplist('jumplist_M', ['M', '<C-o>'], [2,2], [2,2]);
261261
testJumplist('jumplist_L', ['L', '<C-o>'], [2,2], [2,2]);
@@ -299,15 +299,15 @@ function testMotion(name, keys, endPos, startPos) {
299299
helpers.doKeys(keys);
300300
helpers.assertCursorAt(endPos);
301301
});
302-
};
302+
}
303303

304304
function makeCursor(line, ch) {
305305
return new Pos(line, ch);
306-
};
306+
}
307307

308308
function offsetCursor(cur, offsetLine, offsetCh) {
309309
return new Pos(cur.line + offsetLine, cur.ch + offsetCh);
310-
};
310+
}
311311

312312
// Motion tests
313313
testMotion('|', '|', makeCursor(0, 0), makeCursor(0,4));
@@ -3909,7 +3909,7 @@ function testSubstituteConfirm(name, command, initialValue, expectedValue, keys,
39093909
cm.openDialog = savedOpenDialog;
39103910
}
39113911
}, { value: initialValue });
3912-
};
3912+
}
39133913
testSubstituteConfirm('ex_substitute_confirm_emptydoc',
39143914
'%s/x/b/c', '', '', '', makeCursor(0, 0));
39153915
testSubstituteConfirm('ex_substitute_confirm_nomatch',

0 commit comments

Comments
 (0)