Skip to content

Instantly share code, notes, and snippets.

@kongelaks
Created August 6, 2012 20:28
Show Gist options
  • Save kongelaks/3278166 to your computer and use it in GitHub Desktop.
Save kongelaks/3278166 to your computer and use it in GitHub Desktop.
js2-mode / evil bug
// original js code
var path = {};
var tmp = path.join('log');
var abcd = 'str';
var f = function(somearg) {
return somearg;
};
// command set 1, performed in the default js mode
// ci(
// var f = function([s]omearg) {
// (evil-change 79 86 (quote inclusive) nil nil)
// expected behavior
// result of command set 1
var path = {};
var tmp = path.join('log');
var abcd = 'str';
var f = function() {
return somearg;
};
// command set 2, performed in js2-mode
// https://github.com/mooz/js2-mode
// ci(
// var f = function([s]omearg) {
// (evil-change 2 13 (quote inclusive) nil nil)
// unexpected behavior
// result of command set 2
v};
var tmp = path.join('log');
var abcd = 'str';
var f = function(somearg) {
return somearg;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment