mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-11 09:40:37 +02:00
Add test that shows an issue when deleting a line at the end of file
This commit is contained in:
parent
79437df894
commit
a9ddfac782
@ -16,6 +16,7 @@ import org.jetbrains.plugins.ideavim.SkipNeovimReason
|
||||
import org.jetbrains.plugins.ideavim.TestWithoutNeovim
|
||||
import org.jetbrains.plugins.ideavim.VimTestCase
|
||||
import org.jetbrains.plugins.ideavim.waitAndAssertMode
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
/**
|
||||
@ -159,4 +160,25 @@ class DeleteVisualActionTest : VimTestCase() {
|
||||
""".trimIndent()
|
||||
doTest(keys, before, after, Mode.NORMAL())
|
||||
}
|
||||
|
||||
// This test causes a bug, but it's minor, and I'm not sure how to fix it properly
|
||||
// It happens because we do perform sequential deletions on editor that is mutated.
|
||||
// I think, we should firstly collect operations and then apply them at once. However,
|
||||
// this will require to much effort at the moment for a tiny bug
|
||||
@Test
|
||||
@Disabled
|
||||
fun `test delete on empty lines`() {
|
||||
val keys = listOf("Vd")
|
||||
val before = """
|
||||
1
|
||||
${c}
|
||||
${c}
|
||||
""".trimIndent()
|
||||
val after = """
|
||||
1
|
||||
${c}
|
||||
${c}
|
||||
""".trimIndent()
|
||||
doTest(keys, before, after, Mode.NORMAL())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user