Created
August 6, 2012 20:28
-
-
Save kongelaks/3278166 to your computer and use it in GitHub Desktop.
js2-mode / evil bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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