JetBrains/ideavim — pull request #43 by rasendubi (2014-10-19 10:14:14+00:00)
Title: Fix inserting new line before and after fold

If you have your window like (notice the fold):

class Main {
public static void main(String[] args) {...}
}

and then press `O`, you're expecting to get:

class Main {
public static void main(String[] args) {...}

}

but actual result is:

class Main {
public static void main(String[] args) {

// whatever in main
}
}

This pull request fixes the problem as well as adds test for it.